Commit b4708d00 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Restyled git tags page. Added truncated tags message

parent f73e46ee
......@@ -29,6 +29,7 @@
.underlined_link { text-decoration: underline; }
.borders { border: 1px solid #ccc; @include shade; }
.hint { font-style: italic; color: #999; }
.light { color: #888 }
/** PILLS & TABS**/
.nav-pills a:hover { background-color:#888; }
......
......@@ -34,6 +34,11 @@ table {
border-color:#f1f1f1;
line-height:28px;
.s16 {
margin-top: 5px;
margin-right: 5px;
}
&:first-child {
border-left:1px solid #bbb;
}
......
......@@ -50,7 +50,7 @@ class CommitDecorator < ApplicationDecorator
# avatar: true will prepend avatar image
def author_link(options)
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}"
else
author_name
......
......@@ -5,27 +5,29 @@
%tr
%th Name
%th Last commit
%th Updated at
%th
- @tags.each do |tag|
- commit = Commit.new(tag.commit)
- commit = CommitDecorator.decorate(commit)
%tr
%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
= link_to project_commit_path(@project, commit.id) do
%code= commit.short_id
= image_tag gravatar_icon(commit.author_email), class: "", width: 16
= gfm escape_once(truncate(commit.title, length: 40))
%td
%span.update-author.right
= image_tag gravatar_icon(commit.author_email), class: "avatar s16"
= link_to project_commit_path(@project, commit.id), class: 'commit_short_id' do
= commit.short_id
%span.light
= time_ago_in_words(commit.committed_date)
ago
&nbsp;
%td
- 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
%h3 No tags
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment