Add SDG content section

This commit is contained in:
Javi Martín
2020-11-11 13:16:37 +01:00
parent 2b6c9914dd
commit a42cb050a7
21 changed files with 166 additions and 1 deletions

View File

@@ -15,6 +15,8 @@
<nav id="side_menu" class="admin-sidebar">
<% if namespace == "admin" %>
<%= render Admin::MenuComponent.new %>
<% elsif namespace == "sdg_management" %>
<%= render SDGManagement::MenuComponent.new %>
<% else %>
<%= render "/#{namespace}/menu" %>
<% end %>

View File

@@ -0,0 +1 @@
<%= render SDGManagement::Goals::IndexComponent.new(@goals) %>

View File

@@ -32,6 +32,12 @@
<%= link_to t("layouts.header.officing"), officing_root_path %>
</li>
<% end %>
<% if current_user.administrator? %>
<li>
<%= link_to t("sdg_management.header.title"), sdg_management_root_path %>
</li>
<% end %>
</ul>
</li>
<% end %>