##// END OF EJS Templates
Avatars added in news (#3941) and forums (#4468) + cleanup....
Jean-Philippe Lang -
r3170:99956ec2489a
parent child
Show More
@@ -32,7 +32,6 module JournalsHelper
32 content << textilizable(journal, :notes)
32 content << textilizable(journal, :notes)
33 css_classes = "wiki"
33 css_classes = "wiki"
34 css_classes << " editable" if editable
34 css_classes << " editable" if editable
35 css_classes << " gravatar-margin" if Setting.gravatar_enabled?
36 content_tag('div', content, :id => "journal-#{journal.id}-notes", :class => css_classes)
35 content_tag('div', content, :id => "journal-#{journal.id}-notes", :class => css_classes)
37 end
36 end
38
37
@@ -2,9 +2,10
2 <% for journal in journals %>
2 <% for journal in journals %>
3 <div id="change-<%= journal.id %>" class="journal">
3 <div id="change-<%= journal.id %>" class="journal">
4 <h4><div style="float:right;"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
4 <h4><div style="float:right;"><%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %></div>
5 <%= avatar(journal.user, :size => "24") %>
5 <%= content_tag('a', '', :name => "note-#{journal.indice}")%>
6 <%= content_tag('a', '', :name => "note-#{journal.indice}")%>
6 <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %></h4>
7 <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %></h4>
7 <%= avatar(journal.user, :size => "32") %>
8
8 <ul>
9 <ul>
9 <% for detail in journal.details %>
10 <% for detail in journal.details %>
10 <li><%= show_detail(detail) %></li>
11 <li><%= show_detail(detail) %></li>
@@ -3,7 +3,7
3 <h2><%= @issue.tracker.name %> #<%= @issue.id %></h2>
3 <h2><%= @issue.tracker.name %> #<%= @issue.id %></h2>
4
4
5 <div class="<%= @issue.css_classes %> details">
5 <div class="<%= @issue.css_classes %> details">
6 <%= avatar(@issue.author, :size => "64") %>
6 <%= avatar(@issue.author, :size => "50") %>
7 <h3><%=h @issue.subject %></h3>
7 <h3><%=h @issue.subject %></h3>
8 <p class="author">
8 <p class="author">
9 <%= authoring @issue.created_on, @issue.author %>.
9 <%= authoring @issue.created_on, @issue.author %>.
@@ -8,7 +8,7
8 <%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') if @message.destroyable_by?(User.current) %>
8 <%= link_to(l(:button_delete), {:action => 'destroy', :id => @topic}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') if @message.destroyable_by?(User.current) %>
9 </div>
9 </div>
10
10
11 <h2><%=h @topic.subject %></h2>
11 <h2><%= avatar(@topic.author, :size => "24") %><%=h @topic.subject %></h2>
12
12
13 <div class="message">
13 <div class="message">
14 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
14 <p><span class="author"><%= authoring @topic.created_on, @topic.author %></span></p>
@@ -29,6 +29,7
29 <%= link_to(image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete)) if message.destroyable_by?(User.current) %>
29 <%= link_to(image_tag('delete.png'), {:action => 'destroy', :id => message}, :method => :post, :confirm => l(:text_are_you_sure), :title => l(:button_delete)) if message.destroyable_by?(User.current) %>
30 </div>
30 </div>
31 <h4>
31 <h4>
32 <%= avatar(message.author, :size => "24") %>
32 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :anchor => "message-#{message.id}" } %>
33 <%= link_to h(message.subject), { :controller => 'messages', :action => 'show', :board_id => @board, :id => @topic, :anchor => "message-#{message.id}" } %>
33 -
34 -
34 <%= authoring message.created_on, message.author %>
35 <%= authoring message.created_on, message.author %>
@@ -7,7 +7,7
7 <%= link_to_if_authorized l(:button_delete), {:controller => 'news', :action => 'destroy', :id => @news}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
7 <%= link_to_if_authorized l(:button_delete), {:controller => 'news', :action => 'destroy', :id => @news}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
8 </div>
8 </div>
9
9
10 <h2><%=h @news.title %></h2>
10 <h2><%= avatar(@news.author, :size => "24") %><%=h @news.title %></h2>
11
11
12 <% if authorize_for('news', 'edit') %>
12 <% if authorize_for('news', 'edit') %>
13 <div id="edit-news" style="display:none;">
13 <div id="edit-news" style="display:none;">
@@ -42,7 +42,7
42 <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'news', :action => 'destroy_comment', :id => @news, :comment_id => comment},
42 <%= link_to_if_authorized image_tag('delete.png'), {:controller => 'news', :action => 'destroy_comment', :id => @news, :comment_id => comment},
43 :confirm => l(:text_are_you_sure), :method => :post, :title => l(:button_delete) %>
43 :confirm => l(:text_are_you_sure), :method => :post, :title => l(:button_delete) %>
44 </div>
44 </div>
45 <h4><%= authoring comment.created_on, comment.author %></h4>
45 <h4><%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %></h4>
46 <%= textilizable(comment.comments) %>
46 <%= textilizable(comment.comments) %>
47 <% end if @comments.any? %>
47 <% end if @comments.any? %>
48 </div>
48 </div>
@@ -2,7 +2,7
2 <%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %>
2 <%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %>
3 </div>
3 </div>
4
4
5 <h2><%= avatar @user %> <%=h @user.name %></h2>
5 <h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>
6
6
7 <div class="splitcontentleft">
7 <div class="splitcontentleft">
8 <ul>
8 <ul>
@@ -810,9 +810,15 div.issue table img.gravatar {
810 margin: 0 0.5em 0 0;
810 margin: 0 0.5em 0 0;
811 }
811 }
812
812
813 #history img.gravatar {
813 h2 img.gravatar {
814 padding: 3px;
814 padding: 3px;
815 margin: 0 1.5em 1em 0;
815 margin: -2px 4px 0 0;
816 float: left;
817 }
818
819 h4 img.gravatar {
820 padding: 3px;
821 margin: -6px 4px 0 0;
816 float: left;
822 float: left;
817 }
823 }
818
824
@@ -831,10 +837,6 td.username img.gravatar {
831 clear: left;
837 clear: left;
832 }
838 }
833
839
834 .gravatar-margin {
835 margin-left: 40px;
836 }
837
838 h2 img { vertical-align:middle; }
840 h2 img { vertical-align:middle; }
839
841
840 .hascontextmenu { cursor: context-menu; }
842 .hascontextmenu { cursor: context-menu; }
General Comments 0
You need to be logged in to leave comments. Login now