Sha256: 1ddb495b14cc11cd0e9946563a027817717fb2d26e1089b03fe05bcc727d4950

Contents?: true

Size: 972 Bytes

Versions: 2

Compression:

Stored size: 972 Bytes

Contents

<% content_for :header do -%>
  <h2>Projects for <%= current_account.name %></h2>
<% end -%>

<%= render :partial => 'accounts/subnav' %>

<h3>Active Projects</h3>
<ul class="projects active">
  <% @active_projects.each do |project| -%>
    <%= content_tag_for :li, project do -%>
      <%= link_to h(project.name), edit_account_project_path(current_account, project), :class => "edit" %>
    <% end -%>
  <% end -%>
</ul>

<%= link_to 'New Project', new_account_project_path(current_account), :class => "button" %>

<% if @archived_projects.any? -%>
  <h3>Archived Projects</h3>
  <ul class="projects archived">
    <% @archived_projects.each do |project| -%>
      <%= content_tag_for :li, project do -%>
        <%= link_to h(project.name), edit_account_project_path(current_account, project), :class => "edit" %>
        <%= link_to "View Project", account_project_path(current_account, project), :class => "view" %>
      <% end -%>
    <% end -%>
  </ul>
<% end -%>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
saucy-0.16.1 app/views/projects/index.html.erb
saucy-0.16.0 app/views/projects/index.html.erb