Codeminer42/cm42-central

View on GitHub
app/views/projects/show.html.erb

Summary

Maintainability
Test Coverage
<%= render partial: 'sidebar',
           layout: 'sidebar_wrapper',
           locals: { wrapper_class: 'collapsed' } %>

<% content_for :title_bar do %>
  <ul class="nav navbar-nav">
    <li>
      <%= link_to @project.name, @project %>
    </li>
  </ul>

  <p class="navbar-text velocity" id="velocity" data-step="velocity"></p>

  <% unless current_user.guest? %>
    <button type="button" class="btn btn-primary btn-sm navbar-btn" id="add_story" data-step="add-story">
      <i class="mi md-light md-18 md-add">add</i>
      <%= t('add story') %>
    </button>
  <% end %>
<% end %>

<% content_for :right_menu do %>
  <%= form_tag '#', id: 'form_search', class: 'navbar-form navbar-left navbar-search', html: { role: 'search' } do %>
    <div class="form-group">
      <input type="text" name="q" placeholder="Search" class="form-control input-sm"/>
      <i class="mi md-20 drop-target">help</i>
    </div>
  <% end %>
<% end %>

<% content_for :navbar do %>
  <%= render 'navbar', project: @project %>
<% end %>

<div class="project-stories" id="project-stories"
     data-project="<%= @project.to_json %>"
     data-users="<%= @project.users.to_json %>"
     data-current-user="<%= current_user.to_json %>"
     data-current-flow="<%= @story_flow[:current] %>"
     data-default-flow="<%= @story_flow[:default] %>">
</div>