Projects selector

This commit is contained in:
2025-07-15 22:46:28 +03:00
parent 434b5b184e
commit 991ff51aae
11 changed files with 202 additions and 4 deletions
@@ -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 %>
+6 -1
View File
@@ -23,6 +23,11 @@
</head>
<body>
<%= yield %>
<aside>
<%= render partial: 'projects_selector' %>
</aside>
<main>
<%= yield %>
</main>
</body>
</html>