add tags to project list

This commit is contained in:
Aleksei Kvitinskii 2011-11-05 22:16:13 +02:00
parent 6e08b5cc85
commit 62112dc0c7
3 changed files with 21 additions and 16 deletions

View file

@ -270,20 +270,6 @@ input.ssh_project_url {
}
}
#projects-list .small-tags a{
font-size: 9px;
display: inline-block;
padding: 2px 3px 1px 3px;
margin: 0px 3px 0px 0px;
border-radius: 2px;
background-color: #3b6bce;
color: #FFF;
text-shadow: none;
font-weight: bold;
}
.clear {
clear: both;
}

View file

@ -8,9 +8,23 @@
padding: 8px 11px 8px 11px;
margin: 1px 5px 0px 0px;
border-radius: 4px;
border: 1px solid #d0e1ff;
background-color: #d0e1ff;
border: 1px solid #72bbdf;
background-color: #72bbdf;
color: #0f326d;
font-weight: bold;
font-size: 14px;
}
.small-tags a{
font-size: 9px;
display: inline-block;
padding: 2px 3px 1px 3px;
margin: 0px 3px 0px 0px;
border-radius: 2px;
background-color: #72bbdf;
color: #FFF;
text-shadow: none;
font-weight: bold;
}

View file

@ -12,6 +12,11 @@
%span Last Activity:
- last_note = project.notes.last
= last_note ? last_note.created_at.stamp("24 Aug, 2011") : "Never"
%p.small-tags
- project.tag_list.each do |tag|
= link_to tag, "/tags/#{tag}"
.buttons
%a.browse-code.button.yellow{:href => tree_project_path(project)} Browse code
%a.commits.button.green{:href => project_commits_path(project)} Commits