diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb index 389d7fb..4f21b30 100644 --- a/app/helpers/journals_helper.rb +++ b/app/helpers/journals_helper.rb @@ -32,7 +32,6 @@ module JournalsHelper content << textilizable(journal, :notes) css_classes = "wiki" css_classes << " editable" if editable - css_classes << " gravatar-margin" if Setting.gravatar_enabled? content_tag('div', content, :id => "journal-#{journal.id}-notes", :class => css_classes) end diff --git a/app/models/query.rb b/app/models/query.rb index afbb687..788f34e 100644 --- a/app/models/query.rb +++ b/app/models/query.rb @@ -232,7 +232,7 @@ class Query < ActiveRecord::Base def add_short_filter(field, expression) return unless expression - parms = expression.scan(/^(o|c|\!|\*)?(.*)$/).first + parms = expression.scan(/^(o|c|!\*|!|\*)?(.*)$/).first add_filter field, (parms[0] || "="), [parms[1] || ""] end diff --git a/app/views/auth_sources/list.rhtml b/app/views/auth_sources/list.rhtml index a29a177..6e8b4d7 100644 --- a/app/views/auth_sources/list.rhtml +++ b/app/views/auth_sources/list.rhtml @@ -22,6 +22,7 @@ <%= link_to l(:button_test), :action => 'test_connection', :id => source %> <%= link_to l(:button_delete), { :action => 'destroy', :id => source }, + :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del', :disabled => source.users.any? %> diff --git a/app/views/issues/_history.rhtml b/app/views/issues/_history.rhtml index 267263b..ffbb293 100644 --- a/app/views/issues/_history.rhtml +++ b/app/views/issues/_history.rhtml @@ -2,9 +2,10 @@ <% for journal in journals %>

<%= link_to "##{journal.indice}", :anchor => "note-#{journal.indice}" %>
+ <%= avatar(journal.user, :size => "24") %> <%= content_tag('a', '', :name => "note-#{journal.indice}")%> <%= authoring journal.created_on, journal.user, :label => :label_updated_time_by %>

- <%= avatar(journal.user, :size => "32") %> +
-

<%=h @news.title %>

+

<%= avatar(@news.author, :size => "24") %><%=h @news.title %>

<% if authorize_for('news', 'edit') %> -

<%= authoring comment.created_on, comment.author %>

+

<%= avatar(comment.author, :size => "24") %><%= authoring comment.created_on, comment.author %>

<%= textilizable(comment.comments) %> <% end if @comments.any? %> diff --git a/app/views/reports/_details.rhtml b/app/views/reports/_details.rhtml index c3ad2be..c9cd88b 100644 --- a/app/views/reports/_details.rhtml +++ b/app/views/reports/_details.rhtml @@ -17,27 +17,32 @@ "> <%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "#{field_name}" => row.id %> <% for status in @statuses %> <%= aggregate_link data, { field_name => row.id, "status_id" => status.id }, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "status_id" => status.id, "#{field_name}" => row.id %> <% end %> <%= aggregate_link data, { field_name => row.id, "closed" => 0 }, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "o" %> <%= aggregate_link data, { field_name => row.id, "closed" => 1 }, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "c" %> <%= aggregate_link data, { field_name => row.id }, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "*" %> diff --git a/app/views/reports/_simple.rhtml b/app/views/reports/_simple.rhtml index 7f799f3..e82f376 100644 --- a/app/views/reports/_simple.rhtml +++ b/app/views/reports/_simple.rhtml @@ -13,20 +13,24 @@ "> <%= link_to row.name, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "#{field_name}" => row.id %> <%= aggregate_link data, { field_name => row.id, "closed" => 0 }, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "o" %> <%= aggregate_link data, { field_name => row.id, "closed" => 1 }, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "c" %> <%= aggregate_link data, { field_name => row.id }, :controller => 'issues', :action => 'index', :project_id => ((row.is_a?(Project) ? row : @project)), :set_filter => 1, + :subproject_id => '!*', "#{field_name}" => row.id, "status_id" => "*" %> diff --git a/app/views/users/show.rhtml b/app/views/users/show.rhtml index 8816f10..82634b0 100644 --- a/app/views/users/show.rhtml +++ b/app/views/users/show.rhtml @@ -2,7 +2,7 @@ <%= link_to(l(:button_edit), {:controller => 'users', :action => 'edit', :id => @user}, :class => 'icon icon-edit') if User.current.admin? %> -

<%= avatar @user %> <%=h @user.name %>

+

<%= avatar @user, :size => "50" %> <%=h @user.name %>