Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix buttons on ifc models index

ulferts99698bd32f49
diff --git a/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb b/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb
index 16e76c82cea..61efd0f598b 100644
--- a/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb
+++ b/modules/ifc_models/app/views/ifc_models/ifc_models/index.html.erb
@@ -29,28 +29,28 @@ See docs/COPYRIGHT.rdoc for more details.
<% html_title(t('ifc_models.label_ifc_models')) -%>
<%= toolbar title: t('ifc_models.label_ifc_models') do %>
- <% if @ifc_models.any? %>
- <li class="toolbar-item">
- <%= link_to show_defaults_ifc_models_project_ifc_models_path,
- { class: 'button -alt-highlight',
- aria: { label: t(:label_new_ifc_model) },
- title: t(:label_new_ifc_model) } do %>
- <%= op_icon('button--icon icon-eye') %>
- <span class="button--text"><%= t('ifc_models.label_show_defaults') %></span>
- <% end %>
- </li>
- <% end %>
<% if User.current.allowed_to?(:manage_ifc_models, @project) %>
<li class="toolbar-item">
<%= link_to new_ifc_models_project_ifc_model_path,
- { class: 'button -highlight',
- aria: { label: t(:label_new_ifc_model) },
- title: t(:label_new_ifc_model) } do %>
+ { class: 'button -alt-highlight',
+ aria: { label: t(:'ifc_models.label_new_ifc_model') },
+ title: t(:'ifc_models.label_new_ifc_model') } do %>
<%= op_icon('button--icon icon-add') %>
<span class="button--text"><%= ::IFCModels::IFCModel.model_name.human %></span>
<% end %>
</li>
<% end %>
+ <% if @ifc_models.any? %>
+ <li class="toolbar-item">
+ <%= link_to show_defaults_ifc_models_project_ifc_models_path,
+ { class: 'button',
+ aria: { label: t('ifc_models.label_show_defaults') },
+ title: t('ifc_models.label_show_defaults') } do %>
+ <%= op_icon('button--icon icon-watched') %>
+ <span class="button--text"><%= t('ifc_models.label_show_defaults') %></span>
+ <% end %>
+ </li>
+ <% end %>
<% end %>
<%= cell ::IFCModels::Models::TableCell, @ifc_models %>