Projects selector
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
<% if current_project %>
|
||||
<projects-selector>
|
||||
<% all_projects.each do |project| %>
|
||||
<%= tag.option(project.name, href: project_path(project), selected: current_project == project) %>
|
||||
<% end %>
|
||||
</projects-selector>
|
||||
<% end %>
|
||||
@@ -23,6 +23,11 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<%= yield %>
|
||||
<aside>
|
||||
<%= render partial: 'projects_selector' %>
|
||||
</aside>
|
||||
<main>
|
||||
<%= yield %>
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user