Project

General

Profile

Patch #6649 ยป titles.patch

Carsten Schurig, 2010-10-12 17:57

View differences:

app/helpers/watchers_helper.rb (Arbeitskopie)
41 41
    link_to_remote((watched ? l(:button_unwatch) : l(:button_watch)),
42 42
                   {:url => url},
43 43
                   :href => url_for(url),
44
                   :class => (watched ? 'icon icon-fav' : 'icon icon-fav-off'))
44
                   :class => (watched ? 'icon icon-fav' : 'icon icon-fav-off'),
45
                   :title => (watched ? l(:button_unwatch) : l(:button_watch)))
45 46
  
46 47
  end
47 48
  
app/helpers/users_helper.rb (Arbeitskopie)
37 37
    url = {:controller => 'users', :action => 'update', :id => user, :page => params[:page], :status => params[:status], :tab => nil}
38 38
    
39 39
    if user.locked?
40
      link_to l(:button_unlock), url.merge(:user => {:status => User::STATUS_ACTIVE}), :method => :put, :class => 'icon icon-unlock'
40
      link_to l(:button_unlock), url.merge(:user => {:status => User::STATUS_ACTIVE}), :method => :put, :class => 'icon icon-unlock', :title => l(:button_unlock)
41 41
    elsif user.registered?
42
      link_to l(:button_activate), url.merge(:user => {:status => User::STATUS_ACTIVE}), :method => :put, :class => 'icon icon-unlock'
42
      link_to l(:button_activate), url.merge(:user => {:status => User::STATUS_ACTIVE}), :method => :put, :class => 'icon icon-unlock', :title => l(:button_activate)
43 43
    elsif user != User.current
44
      link_to l(:button_lock), url.merge(:user => {:status => User::STATUS_LOCKED}), :method => :put, :class => 'icon icon-lock'
44
      link_to l(:button_lock), url.merge(:user => {:status => User::STATUS_LOCKED}), :method => :put, :class => 'icon icon-lock', :title => l(:button_lock)
45 45
    end
46 46
  end
47 47
  
app/views/workflows/_action_menu.rhtml (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:button_edit), {:action => 'edit'}, :class => 'icon icon-edit' %>
3
<%= link_to l(:button_copy), {:action => 'copy'}, :class => 'icon icon-copy' %>
4
<%= link_to l(:field_summary), {:action => 'index'}, :class => 'icon icon-summary' %>
2
<%= link_to l(:button_edit), {:action => 'edit'}, :class => 'icon icon-edit', :title => l(:button_edit) %>
3
<%= link_to l(:button_copy), {:action => 'copy'}, :class => 'icon icon-copy', :title => l(:button_copy) %>
4
<%= link_to l(:field_summary), {:action => 'index'}, :class => 'icon icon-summary', :title => l(:field_summary) %>
5 5
</div>
app/views/users/show.rhtml (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit') if User.current.admin? %>
2
<%= link_to(l(:button_edit), edit_user_path(@user), :class => 'icon icon-edit', :title => l(:button_edit)) if User.current.admin? %>
3 3
</div>
4 4

  
5 5
<h2><%= avatar @user, :size => "50" %> <%=h @user.name %></h2>
app/views/users/edit.rhtml (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user' %>
2
<%= link_to l(:label_profile), user_path(@user), :class => 'icon icon-user', :title => l(:label_profile) %>
3 3
<%= change_status_link(@user) %>
4 4
</div>
5 5

  
app/views/users/index.rhtml (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:label_user_new), {:action => 'new'}, :class => 'icon icon-add' %>
2
<%= link_to l(:label_user_new), {:action => 'new'}, :class => 'icon icon-add', :title => l(:label_user_new) %>
3 3
</div>
4 4

  
5 5
<h2><%=l(:label_user_plural)%></h2>
app/views/auth_sources/index.html.erb (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add' %>
2
<%= link_to l(:label_auth_source_new), {:action => 'new'}, :class => 'icon icon-add', :title => l(:label_auth_source_new) %>
3 3
</div>
4 4

  
5 5
<h2><%=l(:label_auth_source_plural)%></h2>
......
24 24
    	<%= link_to l(:button_delete), { :action => 'destroy', :id => source },
25 25
    																										:method => :post,
26 26
                                                        :confirm => l(:text_are_you_sure),
27
                                                        :class => 'icon icon-del',
27
                                                        :class => 'icon icon-del', :title => l(:button_delete),
28 28
                                                        :disabled => source.users.any? %>
29 29
    </td>
30 30
  </tr>
app/views/news/index.rhtml (Arbeitskopie)
2 2
<%= link_to_if_authorized(l(:label_news_new),
3 3
                          new_project_news_path(@project),
4 4
                          :class => 'icon icon-add',
5
                          :title => l(:label_news_new),
5 6
                          :onclick => 'Element.show("add-news"); Form.Element.focus("news_title"); return false;') if @project %>
6 7
</div>
7 8

  
app/views/trackers/index.html.erb (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:label_tracker_new), {:action => 'new'}, :class => 'icon icon-add' %>
2
<%= link_to l(:label_tracker_new), {:action => 'new'}, :class => 'icon icon-add', :title => l(:label_tracker_new) %>
3 3
</div>
4 4

  
5 5
<h2><%=l(:label_tracker_plural)%></h2>
app/views/groups/index.html.erb (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add' %>
2
<%= link_to l(:label_group_new), new_group_path, :class => 'icon icon-add', :title => l(:label_group_new) %>
3 3
</div>
4 4

  
5 5
<h2><%= l(:label_group_plural) %></h2>
app/views/groups/_memberships.html.erb (Arbeitskopie)
26 26
    <% end %>
27 27
  </td>
28 28
  <td class="buttons">
29
      <%= link_to_function l(:button_edit), "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", :class => 'icon icon-edit' %>
29
      <%= link_to_function l(:button_edit), "$('member-#{membership.id}-roles').hide(); $('member-#{membership.id}-roles-form').show(); return false;", :class => 'icon icon-edit', :title => l(:button_edit) %>
30 30
      <%= link_to_remote l(:button_delete), { :url => { :controller => 'groups', :action => 'destroy_membership', :id => @group, :membership_id => membership },
31 31
      																				:method => :post },
32
      																		  :class => 'icon icon-del' %>
32
      																		  :class => 'icon icon-del', :title => l(:button_delete) %>
33 33
  </td>
34 34
	</tr>
35 35
	</tbody>
app/views/groups/_users.html.erb (Arbeitskopie)
12 12
			  <td class="buttons">
13 13
			      <%= link_to_remote l(:button_delete), { :url => { :controller => 'groups', :action => 'remove_user', :id => @group, :user_id => user },
14 14
			      																				:method => :post },
15
			      																		  :class => 'icon icon-del' %>
15
			      																		  :class => 'icon icon-del', :title => l(:button_delete) %>
16 16
			  </td>
17 17
			</tr>
18 18
		<% end %>
app/views/issue_statuses/index.html.erb (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:label_issue_status_new), {:action => 'new'}, :class => 'icon icon-add' %>
3
<%= link_to(l(:label_update_issue_done_ratios), {:action => 'update_issue_done_ratio'}, :class => 'icon icon-multiple', :method => 'post', :confirm => l(:text_are_you_sure)) if Issue.use_status_for_done_ratio? %>
2
<%= link_to l(:label_issue_status_new), {:action => 'new'}, :class => 'icon icon-add', :title => l(:label_issue_status_new) %>
3
<%= link_to(l(:label_update_issue_done_ratios), {:action => 'update_issue_done_ratio'}, :class => 'icon icon-multiple', :method => 'post', :confirm => l(:text_are_you_sure), :title => l(:label_update_issue_done_ratios)) if Issue.use_status_for_done_ratio? %>
4 4
</div>
5 5

  
6 6
<h2><%=l(:label_issue_status_plural)%></h2>
......
30 30
    <%= link_to(l(:button_delete), { :action => 'destroy', :id => status },
31 31
    															 :method => :post,
32 32
    															 :confirm => l(:text_are_you_sure),
33
    															 :class => 'icon icon-del') %>
33
    															 :class => 'icon icon-del', :title => l(:button_delete)) %>
34 34
  </td>
35 35
  </tr>
36 36
<% end %>
app/views/roles/index.html.erb (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add' %>
2
<%= link_to l(:label_role_new), {:action => 'new'}, :class => 'icon icon-add', :title => l(:label_role_new) %>
3 3
</div>
4 4

  
5 5
<h2><%=l(:label_role_plural)%></h2>
......
23 23
    <%= link_to(l(:button_delete), { :action => 'destroy', :id => role },
24 24
    															:method => :post, 
25 25
    															:confirm => l(:text_are_you_sure),
26
    															:class => 'icon icon-del') unless role.builtin? %>
26
    															:class => 'icon icon-del', :title => l(:button_delete)) unless role.builtin? %>
27 27
  </td>
28 28
  </tr>
29 29
<% end %>
app/views/repositories/_navigation.rhtml (Arbeitskopie)
2 2
  <%= javascript_include_tag 'repository_navigation' %>
3 3
<% end %>
4 4

  
5
<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %>
5
<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats', :title => l(:label_statistics) %>
6 6

  
7 7
<% form_tag({:action => controller.action_name, :id => @project, :path => to_path_param(@path), :rev => ''}, {:method => :get, :id => 'revision_selector'}) do -%>
8 8
  <!-- Branches Dropdown -->
app/views/admin/projects.rhtml (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add' %>
2
<%= link_to l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add', :title => l(:label_project_new) %>
3 3
</div>
4 4

  
5 5
<h2><%=l(:label_project_plural)%></h2>
......
32 32
	<td align="center"><%= checked_image project.is_public? %></td>
33 33
	<td align="center"><%= format_date(project.created_on) %></td>
34 34
  <td class="buttons">
35
    <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock') if project.active? %>
36
    <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock') if !project.active? && (project.parent.nil? || project.parent.active?) %>
37
    <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy') %>
38
    <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del') %>
35
    <%= link_to(l(:button_archive), { :controller => 'projects', :action => 'archive', :id => project, :status => params[:status] }, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-lock', :title => l(:button_archive)) if project.active? %>
36
    <%= link_to(l(:button_unarchive), { :controller => 'projects', :action => 'unarchive', :id => project, :status => params[:status] }, :method => :post, :class => 'icon icon-unlock', :title => l(:button_unarchive)) if !project.active? && (project.parent.nil? || project.parent.active?) %>
37
    <%= link_to(l(:button_copy), { :controller => 'projects', :action => 'copy', :id => project }, :class => 'icon icon-copy', :title => l(:button_copy)) %>
38
    <%= link_to(l(:button_delete), project_destroy_confirm_path(project), :class => 'icon icon-del', :title => l(:button_delete)) %>
39 39
  </td>
40 40
  </tr>
41 41
<% end %>
app/views/projects/show.rhtml (Arbeitskopie)
1 1
<div class="contextual">
2 2
	<% if User.current.allowed_to?(:add_subprojects, @project) %>
3
		<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add' %>
3
		<%= link_to l(:label_subproject_new), {:controller => 'projects', :action => 'new', :parent_id => @project}, :class => 'icon icon-add', :title => l(:label_subproject_new) %>
4 4
	<% end %>
5 5
</div>
6 6

  
app/views/projects/index.rhtml (Arbeitskopie)
3 3
<% end %>
4 4

  
5 5
<div class="contextual">
6
    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add') + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
6
    <%= link_to(l(:label_project_new), {:controller => 'projects', :action => 'new'}, :class => 'icon icon-add', :title => l(:label_project_new)) + ' |' if User.current.allowed_to?(:add_project, nil, :global => true) %>
7 7
    <%= link_to(l(:label_issue_view_all), { :controller => 'issues' }) + ' |' if User.current.allowed_to?(:view_issues, nil, :global => true) %>
8 8
    <%= link_to(l(:label_overall_spent_time), { :controller => 'time_entries' }) + ' |' if User.current.allowed_to?(:view_time_entries, nil, :global => true) %>
9 9
    <%= link_to l(:label_overall_activity), { :controller => 'activities', :action => 'index' }%>
app/views/documents/index.rhtml (Arbeitskopie)
2 2
<%= link_to_if_authorized l(:label_document_new),
3 3
                          {:controller => 'documents', :action => 'new', :project_id => @project},
4 4
                          :class => 'icon icon-add',
5
                          :title => l(:label_document_new),
5 6
                          :onclick => 'Element.show("add-document"); Form.Element.focus("document_title"); return false;' %>
6 7
</div>
7 8

  
app/views/wiki/show.rhtml (Arbeitskopie)
1 1
<div class="contextual">
2 2
<% if @editable %>
3
<%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit)) if @content.version == @page.content.version %>
3
<%= link_to_if_authorized(l(:button_edit), {:action => 'edit', :page => @page.title}, :class => 'icon icon-edit', :accesskey => accesskey(:edit), :title => l(:button_edit)) if @content.version == @page.content.version %>
4 4
<%= watcher_tag(@page, User.current) %>
5
<%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :page => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock') if !@page.protected? %>
6
<%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :page => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock') if @page.protected? %>
7
<%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :page => @page.title}, :class => 'icon icon-move') if @content.version == @page.content.version %>
8
<%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :page => @page.title}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del') %>
9
<%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :page => @page.title, :version => @content.version }, :class => 'icon icon-cancel') if @content.version < @page.content.version %>
5
<%= link_to_if_authorized(l(:button_lock), {:action => 'protect', :page => @page.title, :protected => 1}, :method => :post, :class => 'icon icon-lock', :title => l(:button_lock)) if !@page.protected? %>
6
<%= link_to_if_authorized(l(:button_unlock), {:action => 'protect', :page => @page.title, :protected => 0}, :method => :post, :class => 'icon icon-unlock', :title => l(:button_unlock)) if @page.protected? %>
7
<%= link_to_if_authorized(l(:button_rename), {:action => 'rename', :page => @page.title}, :class => 'icon icon-move', :title => l(:button_rename)) if @content.version == @page.content.version %>
8
<%= link_to_if_authorized(l(:button_delete), {:action => 'destroy', :page => @page.title}, :method => :post, :confirm => l(:text_are_you_sure), :class => 'icon icon-del', :title => l(:button_delete)) %>
9
<%= link_to_if_authorized(l(:button_rollback), {:action => 'edit', :page => @page.title, :version => @content.version }, :class => 'icon icon-cancel', :title => l(:button_rollback)) if @content.version < @page.content.version %>
10 10
<% end %>
11
<%= link_to_if_authorized(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history') %>
11
<%= link_to_if_authorized(l(:label_history), {:action => 'history', :page => @page.title}, :class => 'icon icon-history', :title => l(:label_history)) %>
12 12
</div>
13 13

  
14 14
<%= breadcrumb(@page.ancestors.reverse.collect {|parent| link_to h(parent.pretty_title), {:page => parent.title}}) %>
app/views/issues/_action_menu.rhtml (Arbeitskopie)
1 1
<div class="contextual">
2
<%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit)) %>
3
<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'new', :issue_id => @issue}, :class => 'icon icon-time-add' %>
2
<%= link_to_if_authorized(l(:button_update), {:controller => 'issues', :action => 'edit', :id => @issue }, :onclick => 'showAndScrollTo("update", "notes"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit), :title => l(:button_update)) %>
3
<%= link_to_if_authorized l(:button_log_time), {:controller => 'timelog', :action => 'edit', :issue_id => @issue}, :class => 'icon icon-time-add', :title => l(:button_log_time) %>
4 4
<% replace_watcher ||= 'watcher' %>
5 5
<%= watcher_tag(@issue, User.current, {:id => replace_watcher, :replace => ['watcher','watcher2']}) %>
6
<%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate' %>
7
<%= link_to_if_authorized l(:button_copy), new_issue_move_path(:id => @issue, :copy_options => {:copy => 't'}), :class => 'icon icon-copy' %>
8
<%= link_to_if_authorized l(:button_move), new_issue_move_path(:id => @issue), :class => 'icon icon-move' %>
9
<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => (@issue.leaf? ? l(:text_are_you_sure) : l(:text_are_you_sure_with_children)), :method => :post, :class => 'icon icon-del' %>
6
<%= link_to_if_authorized l(:button_duplicate), {:controller => 'issues', :action => 'new', :project_id => @project, :copy_from => @issue }, :class => 'icon icon-duplicate', :title => l(:button_duplicate) %>
7
<%= link_to_if_authorized l(:button_copy), new_issue_move_path(:id => @issue, :copy_options => {:copy => 't'}), :class => 'icon icon-copy', :title => l(:button_copy) %>
8
<%= link_to_if_authorized l(:button_move), new_issue_move_path(:id => @issue), :class => 'icon icon-move', :title => l(:button_move) %>
9
<%= link_to_if_authorized l(:button_delete), {:controller => 'issues', :action => 'destroy', :id => @issue}, :confirm => (@issue.leaf? ? l(:text_are_you_sure) : l(:text_are_you_sure_with_children)), :method => :post, :class => 'icon icon-del', :title => l(:button_delete) %>
10 10
</div>
11 11

  
    (1-1/1)