Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
b4708d00
Commit
b4708d00
authored
Oct 26, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restyled git tags page. Added truncated tags message
parent
f73e46ee
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
11 deletions
+19
-11
app/assets/stylesheets/gitlab_bootstrap/common.scss
app/assets/stylesheets/gitlab_bootstrap/common.scss
+1
-0
app/assets/stylesheets/gitlab_bootstrap/tables.scss
app/assets/stylesheets/gitlab_bootstrap/tables.scss
+5
-0
app/decorators/commit_decorator.rb
app/decorators/commit_decorator.rb
+1
-1
app/views/repositories/tags.html.haml
app/views/repositories/tags.html.haml
+12
-10
No files found.
app/assets/stylesheets/gitlab_bootstrap/common.scss
View file @
b4708d00
...
@@ -29,6 +29,7 @@
...
@@ -29,6 +29,7 @@
.underlined_link
{
text-decoration
:
underline
;
}
.underlined_link
{
text-decoration
:
underline
;
}
.borders
{
border
:
1px
solid
#ccc
;
@include
shade
;
}
.borders
{
border
:
1px
solid
#ccc
;
@include
shade
;
}
.hint
{
font-style
:
italic
;
color
:
#999
;
}
.hint
{
font-style
:
italic
;
color
:
#999
;
}
.light
{
color
:
#888
}
/** PILLS & TABS**/
/** PILLS & TABS**/
.nav-pills
a
:hover
{
background-color
:
#888
;
}
.nav-pills
a
:hover
{
background-color
:
#888
;
}
...
...
app/assets/stylesheets/gitlab_bootstrap/tables.scss
View file @
b4708d00
...
@@ -34,6 +34,11 @@ table {
...
@@ -34,6 +34,11 @@ table {
border-color
:
#f1f1f1
;
border-color
:
#f1f1f1
;
line-height
:
28px
;
line-height
:
28px
;
.s16
{
margin-top
:
5px
;
margin-right
:
5px
;
}
&
:first-child
{
&
:first-child
{
border-left
:
1px
solid
#bbb
;
border-left
:
1px
solid
#bbb
;
}
}
...
...
app/decorators/commit_decorator.rb
View file @
b4708d00
...
@@ -50,7 +50,7 @@ class CommitDecorator < ApplicationDecorator
...
@@ -50,7 +50,7 @@ class CommitDecorator < ApplicationDecorator
# avatar: true will prepend avatar image
# avatar: true will prepend avatar image
def
author_link
(
options
)
def
author_link
(
options
)
text
=
if
options
[
:avatar
]
text
=
if
options
[
:avatar
]
avatar
=
h
.
image_tag
h
.
gravatar_icon
(
author_email
),
class:
"avatar"
,
width:
16
avatar
=
h
.
image_tag
h
.
gravatar_icon
(
author_email
),
class:
"avatar
s16
"
,
width:
16
"
#{
avatar
}
#{
author_name
}
"
"
#{
avatar
}
#{
author_name
}
"
else
else
author_name
author_name
...
...
app/views/repositories/tags.html.haml
View file @
b4708d00
...
@@ -5,27 +5,29 @@
...
@@ -5,27 +5,29 @@
%tr
%tr
%th
Name
%th
Name
%th
Last commit
%th
Last commit
%th
Updated at
%th
%th
-
@tags
.
each
do
|
tag
|
-
@tags
.
each
do
|
tag
|
-
commit
=
Commit
.
new
(
tag
.
commit
)
-
commit
=
Commit
.
new
(
tag
.
commit
)
-
commit
=
CommitDecorator
.
decorate
(
commit
)
-
commit
=
CommitDecorator
.
decorate
(
commit
)
%tr
%tr
%td
%td
%strong
=
link_to
tag
.
name
,
project_commits_path
(
@project
,
tag
.
name
),
class:
""
%strong
=
link_to
project_commits_path
(
@project
,
tag
.
name
),
class:
""
do
%i
.icon-tag
=
tag
.
name
%small
.light
=
truncate
(
tag
.
message
,
length:
70
)
%td
%td
=
link_to
project_commit_path
(
@project
,
commit
.
id
)
do
=
image_tag
gravatar_icon
(
commit
.
author_email
),
class:
"avatar s16"
%code
=
commit
.
short_id
=
link_to
project_commit_path
(
@project
,
commit
.
id
),
class:
'commit_short_id'
do
=
image_tag
gravatar_icon
(
commit
.
author_email
),
class:
""
,
width:
16
=
commit
.
short_id
=
gfm
escape_once
(
truncate
(
commit
.
title
,
length:
40
))
%span
.light
%td
%span
.update-author.right
=
time_ago_in_words
(
commit
.
committed_date
)
=
time_ago_in_words
(
commit
.
committed_date
)
ago
ago
%td
%td
-
if
can?
current_user
,
:download_code
,
@project
-
if
can?
current_user
,
:download_code
,
@project
=
link_to
"Download"
,
archive_project_repository_path
(
@project
,
ref:
tag
.
name
),
class:
"visible_link download_repo_link"
=
link_to
archive_project_repository_path
(
@project
,
ref:
tag
.
name
)
do
%i
.icon-download
Download
-
else
-
else
%h3
No tags
%h3
No tags
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