CSS refactoring. Notes better styled
This commit is contained in:
parent
e1344a08f0
commit
4c1267e09f
7 changed files with 35 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
%li{:id => dom_id(note), :class => "note"}
|
||||
= image_tag gravatar_icon(note.author.email), :class => "left", :width => 40, :style => "padding-right:5px;"
|
||||
= image_tag gravatar_icon(note.author.email), :class => "avatar"
|
||||
%div.note-author
|
||||
%strong= note.author_name
|
||||
= link_to "##{dom_id(note)}", name: dom_id(note) do
|
||||
|
@ -7,7 +7,9 @@
|
|||
= time_ago_in_words(note.updated_at)
|
||||
ago
|
||||
- if(note.author_id == current_user.id) || can?(current_user, :admin_note, @project)
|
||||
%strong= link_to "Remove", [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn small"
|
||||
= link_to [@project, note], :confirm => 'Are you sure?', :method => :delete, :remote => true, :class => "cred delete-note btn very_small" do
|
||||
%i.icon-trash
|
||||
Remove
|
||||
|
||||
%div.note-title
|
||||
= preserve do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue