BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
6f6a8d2a
Commit
6f6a8d2a
authored
Oct 27, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Also update for default project page, feedback:
https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7034#note_17397573
parent
b4ef158a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
_last_commit.html.haml
app/views/projects/_last_commit.html.haml
+5
-4
_commit.html.haml
app/views/projects/commits/_commit.html.haml
+2
-2
show.html.haml
app/views/projects/show.html.haml
+1
-1
No files found.
app/views/projects/_last_commit.html.haml
View file @
6f6a8d2a
-
if
commit
.
status
-
status
=
commit
.
status_for
(
ref
)
=
link_to
builds_namespace_project_commit_path
(
commit
.
project
.
namespace
,
commit
.
project
,
commit
),
class:
"ci-status ci-
#{
commit
.
status
}
"
do
-
if
status
=
ci_icon_for_status
(
commit
.
status
)
=
link_to
builds_namespace_project_commit_path
(
commit
.
project
.
namespace
,
commit
.
project
,
commit
),
class:
"ci-status ci-
#{
status
}
"
do
=
ci_label_for_status
(
commit
.
status
)
=
ci_icon_for_status
(
status
)
=
ci_label_for_status
(
status
)
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit_short_id"
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit_short_id"
=
link_to_gfm
commit
.
title
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-row-message"
=
link_to_gfm
commit
.
title
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-row-message"
...
...
app/views/projects/commits/_commit.html.haml
View file @
6f6a8d2a
...
@@ -18,14 +18,14 @@
...
@@ -18,14 +18,14 @@
%span
.commit-row-message.visible-xs-inline
%span
.commit-row-message.visible-xs-inline
·
·
=
commit
.
short_id
=
commit
.
short_id
-
if
commit
.
status
-
if
commit
.
status
_for
(
ref
)
.visible-xs-inline
.visible-xs-inline
=
render_commit_status
(
commit
,
ref:
ref
)
=
render_commit_status
(
commit
,
ref:
ref
)
-
if
commit
.
description?
-
if
commit
.
description?
%a
.text-expander.hidden-xs.js-toggle-button
...
%a
.text-expander.hidden-xs.js-toggle-button
...
.commit-actions.hidden-xs
.commit-actions.hidden-xs
-
if
commit
.
status
-
if
commit
.
status
_for
(
ref
)
=
render_commit_status
(
commit
,
ref:
ref
)
=
render_commit_status
(
commit
,
ref:
ref
)
=
clipboard_button
(
clipboard_text:
commit
.
id
)
=
clipboard_button
(
clipboard_text:
commit
.
id
)
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-short-id btn btn-transparent"
=
link_to
commit
.
short_id
,
namespace_project_commit_path
(
project
.
namespace
,
project
,
commit
),
class:
"commit-short-id btn btn-transparent"
...
...
app/views/projects/show.html.haml
View file @
6f6a8d2a
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
=
render
'shared/notifications/button'
,
notification_setting:
@notification_setting
=
render
'shared/notifications/button'
,
notification_setting:
@notification_setting
-
if
@repository
.
commit
-
if
@repository
.
commit
.project-last-commit
{
class:
container_class
}
.project-last-commit
{
class:
container_class
}
=
render
'projects/last_commit'
,
commit:
@repository
.
commit
,
project:
@project
=
render
'projects/last_commit'
,
commit:
@repository
.
commit
,
ref:
current_ref
,
project:
@project
%div
{
class:
container_class
}
%div
{
class:
container_class
}
-
if
@project
.
archived?
-
if
@project
.
archived?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment