Skip to content

Commit

Permalink
Add documentation link in users & groups setup view
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaguindani committed Apr 25, 2024
1 parent e5e8ccc commit b920fa6
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/views/catalog_admin/fields/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
</span>
<% end %>

<% provide(:extra_setup) do %>
<% provide(:extra_setup_bottom) do %>
<% if @field_set.class == ItemType && current_user.system_admin? %>
<hr>
<h3><%= t('item_views') %></h3>
Expand Down
11 changes: 9 additions & 2 deletions app/views/catalog_admin/users/index.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
<% provide(:extra_setup_top) do %>
<div class="alert alert-primary" role="alert">
<%= t('.documentation_url_html', :url => documentation_url("faqinvitation.html")) %>
</div>
<hr>
<% end %>

<% provide(:title, t('.groups')) %>

<% provide(:actions) do %>
Expand Down Expand Up @@ -72,8 +79,8 @@
}
</script>

<% provide(:extra_setup) do %>
<hr/>
<% provide(:extra_setup_bottom) do %>
<hr/>
<% if @users %>
<div class="card panel-default user-panel">
<div class="card-header">
Expand Down
5 changes: 4 additions & 1 deletion app/views/layouts/catalog_admin/setup.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,20 @@

</div>
<div class="<%= content_for(:catalog_admin_width) || 'col-sm-9' %>">
<%= yield(:extra_setup_top) %>

<div class="card panel-default">
<div class="card-header">
<% if content_for?(:actions) %>
<span class="pull-right"><%= content_for(:actions) %></span>
<% end %>
<%= content_for(:title) %>
</div>

<%= yield %>
</div>

<%= yield(:extra_setup) %>
<%= yield(:extra_setup_bottom) %>
</div>
</div>

Expand Down
1 change: 1 addition & 0 deletions config/locales/app/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -731,6 +731,7 @@ de:
new_group: Neue Gruppe
no_groups_for_catalog_warning: Es gibt keine Gruppen für diesen Katalog.
search: Suche nach Benutzern
documentation_url_html: "A detailed documentation on the operation and configuration of users and groups is available at: <a href=\"%{url}\" target=\"_blank\">%{url}</a>."
catalog_users:
group_role: Gruppe
edit:
Expand Down
1 change: 1 addition & 0 deletions config/locales/app/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,7 @@ en:
new_group: Create group
no_groups_for_catalog_warning: There are no groups for this catalog.
search: Search for users
documentation_url_html: "A detailed documentation on the operation and configuration of users and groups is available at: <a href=\"%{url}\" target=\"_blank\">%{url}</a>."
catalog_users:
group_role: Group
edit:
Expand Down
1 change: 1 addition & 0 deletions config/locales/app/fr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -939,6 +939,7 @@ fr:
new_group: Nouveau groupe
no_groups_for_catalog_warning: Il n'y a pas de groupes pour ce catalogue.
search: Rechercher des utilisateurs
documentation_url_html: "Une documentation détaillée sur le fonctionnement et la configuration des utilisateurs et groupes est disponible à l'url suivante: <a href=\"%{url}\" target=\"_blank\">%{url}</a>."
catalog_users:
group_role: Groupe
edit:
Expand Down
1 change: 1 addition & 0 deletions config/locales/app/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -578,6 +578,7 @@ it:
new_group: Nuovo gruppo
no_groups_for_catalog_warning: Non ci sono gruppi per questo catalogo.
search: Cerca utenti
documentation_url_html: "A detailed documentation on the operation and configuration of users and groups is available at: <a href=\"%{url}\" target=\"_blank\">%{url}</a>."
catalog_users:
group_role: Gruppo
edit:
Expand Down

0 comments on commit b920fa6

Please sign in to comment.