##// END OF EJS Templates
Merged r3282 to r3284 from trunk....
Jean-Philippe Lang -
r3173:9d82bff1a84f
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
@@ -232,7 +232,7 class Query < ActiveRecord::Base
232
232
233 def add_short_filter(field, expression)
233 def add_short_filter(field, expression)
234 return unless expression
234 return unless expression
235 parms = expression.scan(/^(o|c|\!|\*)?(.*)$/).first
235 parms = expression.scan(/^(o|c|!\*|!|\*)?(.*)$/).first
236 add_filter field, (parms[0] || "="), [parms[1] || ""]
236 add_filter field, (parms[0] || "="), [parms[1] || ""]
237 end
237 end
238
238
@@ -22,6 +22,7
22 <td class="buttons">
22 <td class="buttons">
23 <%= link_to l(:button_test), :action => 'test_connection', :id => source %>
23 <%= link_to l(:button_test), :action => 'test_connection', :id => source %>
24 <%= link_to l(:button_delete), { :action => 'destroy', :id => source },
24 <%= link_to l(:button_delete), { :action => 'destroy', :id => source },
25 :method => :post,
25 :confirm => l(:text_are_you_sure),
26 :confirm => l(:text_are_you_sure),
26 :class => 'icon icon-del',
27 :class => 'icon icon-del',
27 :disabled => source.users.any? %>
28 :disabled => source.users.any? %>
@@ -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>
@@ -17,27 +17,32
17 <tr class="<%= cycle("odd", "even") %>">
17 <tr class="<%= cycle("odd", "even") %>">
18 <td><%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
18 <td><%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
19 :set_filter => 1,
19 :set_filter => 1,
20 :subproject_id => '!*',
20 "#{field_name}" => row.id %></td>
21 "#{field_name}" => row.id %></td>
21 <% for status in @statuses %>
22 <% for status in @statuses %>
22 <td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id },
23 <td align="center"><%= aggregate_link data, { field_name => row.id, "status_id" => status.id },
23 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
24 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
24 :set_filter => 1,
25 :set_filter => 1,
26 :subproject_id => '!*',
25 "status_id" => status.id,
27 "status_id" => status.id,
26 "#{field_name}" => row.id %></td>
28 "#{field_name}" => row.id %></td>
27 <% end %>
29 <% end %>
28 <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
30 <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
29 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
31 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
30 :set_filter => 1,
32 :set_filter => 1,
33 :subproject_id => '!*',
31 "#{field_name}" => row.id,
34 "#{field_name}" => row.id,
32 "status_id" => "o" %></td>
35 "status_id" => "o" %></td>
33 <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
36 <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
34 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
37 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
35 :set_filter => 1,
38 :set_filter => 1,
39 :subproject_id => '!*',
36 "#{field_name}" => row.id,
40 "#{field_name}" => row.id,
37 "status_id" => "c" %></td>
41 "status_id" => "c" %></td>
38 <td align="center"><%= aggregate_link data, { field_name => row.id },
42 <td align="center"><%= aggregate_link data, { field_name => row.id },
39 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
43 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
40 :set_filter => 1,
44 :set_filter => 1,
45 :subproject_id => '!*',
41 "#{field_name}" => row.id,
46 "#{field_name}" => row.id,
42 "status_id" => "*" %></td>
47 "status_id" => "*" %></td>
43 </tr>
48 </tr>
@@ -13,20 +13,24
13 <tr class="<%= cycle("odd", "even") %>">
13 <tr class="<%= cycle("odd", "even") %>">
14 <td><%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
14 <td><%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
15 :set_filter => 1,
15 :set_filter => 1,
16 :subproject_id => '!*',
16 "#{field_name}" => row.id %></td>
17 "#{field_name}" => row.id %></td>
17 <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
18 <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 0 },
18 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
19 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
19 :set_filter => 1,
20 :set_filter => 1,
21 :subproject_id => '!*',
20 "#{field_name}" => row.id,
22 "#{field_name}" => row.id,
21 "status_id" => "o" %></td>
23 "status_id" => "o" %></td>
22 <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
24 <td align="center"><%= aggregate_link data, { field_name => row.id, "closed" => 1 },
23 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
25 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
24 :set_filter => 1,
26 :set_filter => 1,
27 :subproject_id => '!*',
25 "#{field_name}" => row.id,
28 "#{field_name}" => row.id,
26 "status_id" => "c" %></td>
29 "status_id" => "c" %></td>
27 <td align="center"><%= aggregate_link data, { field_name => row.id },
30 <td align="center"><%= aggregate_link data, { field_name => row.id },
28 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
31 :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)),
29 :set_filter => 1,
32 :set_filter => 1,
33 :subproject_id => '!*',
30 "#{field_name}" => row.id,
34 "#{field_name}" => row.id,
31 "status_id" => "*" %></td>
35 "status_id" => "*" %></td>
32 </tr>
36 </tr>
@@ -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