Add SDG content section
This commit is contained in:
@@ -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 %>
|
||||
|
||||
1
app/views/sdg_management/goals/index.html.erb
Normal file
1
app/views/sdg_management/goals/index.html.erb
Normal file
@@ -0,0 +1 @@
|
||||
<%= render SDGManagement::Goals::IndexComponent.new(@goals) %>
|
||||
@@ -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 %>
|
||||
|
||||
Reference in New Issue
Block a user