Change block buttons

pull/6827/head
Henriette Dinger 9 years ago
parent fc2dcc96c6
commit 1877dd0a10
  1. 6
      app/views/my_projects_overviews/blocks/_members.html.erb
  2. 4
      app/views/my_projects_overviews/blocks/_news_latest.html.erb
  3. 7
      app/views/my_projects_overviews/blocks/_project_description.html.erb
  4. 7
      app/views/my_projects_overviews/blocks/_work_package_tracking.html.erb

@ -44,4 +44,10 @@ See doc/COPYRIGHT.md for more details.
<% end %>
</p>
</div>
<% if current_user.admin? %>
<%= link_to new_user_path, class: 'button -alt-highlight' do %>
<i class="button--icon icon-add"></i>
<span class="button--text"><%= l('activerecord.models.member') %></span>
<% end %>
<% end %>
<% end %>

@ -37,6 +37,10 @@ See doc/COPYRIGHT.md for more details.
:action => 'index',
:project_id => project},
:class => 'button -highlight' %>
<%= link_to new_project_news_path(@project), class: 'button -alt-highlight' do %>
<i class="button--icon icon-add"></i>
<span class="button--text"><%= l('activerecord.models.news') %></span>
<% end %>
</p>
</div>
<% end %>

@ -30,3 +30,10 @@ See doc/COPYRIGHT.md for more details.
<div class="overview">
<%= textilizable @project.description %>
</div>
<% if current_user.admin? %>
<%= link_to settings_project_path(project), class: 'button -highlight' do %>
<i class="button--icon icon-edit"></i>
<span class="button--text"><%= l(:button_edit) %></span>
<% end %>
<% end %>

@ -40,12 +40,13 @@ See doc/COPYRIGHT.md for more details.
</ul>
<p>
<%= link_to l(:label_work_package_view_all), {:controller => '/work_packages', :action => 'index', :project_id => project}, :class => 'button -highlight' %>
<% if User.current.allowed_to?(:view_calendar, project, :global => true) %>
<%= link_to(l(:label_calendar), {:controller => '/work_packages/calendars', :action => 'index', :project_id => project}, :class => 'button -highlight') %>
<% end %>
<% if User.current.allowed_to?(:view_gantt, project, :global => true) %>
<%= link_to(l(:label_gantt), {:controller => '/gantts', :action => 'show', :project_id => project}, :class => 'button -highlight') %>
<% end %>
<%= link_to new_project_work_packages_path(project), class: 'button -alt-highlight' do %>
<i class="button--icon icon-add"></i>
<span class="button--text"><%= l('activerecord.models.work_package') %></span>
<% end %>
</p>
</div>
<% end %>

Loading…
Cancel
Save