Skip to content
This repository has been archived by the owner on Jul 3, 2020. It is now read-only.

Commit

Permalink
link tags in item taglist
Browse files Browse the repository at this point in the history
  • Loading branch information
jessor committed Jul 5, 2011
1 parent 2e8bc56 commit eec826d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/index.haml
Expand Up @@ -23,10 +23,10 @@
%a{ :href => "#{item.source}" }
%img{ :src => "/images/#{item.type}.png", :width => '200px', :height => '200px' }
.item-meta
Tagged:
Tags:
%span{ :id => "tagsforitem-#{item.id}", :class => 'taglist' }
- item.tags.each do |tag|
& #{tag.tagname}
%a{ :href => "/filter/by/tag/#{tag.tagname}", :class => 'taglink' } #{tag.tagname}
%form.tag{ :action => "/edit/#{item.id}", :method => 'post', :id => "formforitem-#{item.id}" }
%input{ :type => 'text', :name => 'tag', :size => 10 }
%input.tagpush{ :type => 'submit', :value => 'add' }
Expand Down
4 changes: 4 additions & 0 deletions views/stylesheet.scss
Expand Up @@ -170,6 +170,10 @@ img {
margin: 10px 0;
overflow: hidden;
font-size: 80%;

a.taglink {
color: $white;
}
}

form#create {
Expand Down

0 comments on commit eec826d

Please sign in to comment.