Commit 2c8364f9314a840b2fd7b2da2a7dc08c1119d99e

Authored by Austin Smith
1 parent 9fd60b376d
Exists in master

adding issue priority to each card

Showing 2 changed files with 10 additions and 1 deletions Side-by-side Diff

app/views/taskboard/index.html.erb View file @ 2c8364f
... ... @@ -15,12 +15,15 @@
15 15 <% end %>
16 16 <ul data-status-id="<%= status_id %>" data-max-issues="<%= column.max_issues %>" id="column_<%= status_id %>"<% if issues.empty? %> class="empty"<% end %>>
17 17 <% issues.each do|issue| %>
18   - <li class="card <%= issue.tracker.name.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') %>" id="issue_<%= issue.id %>" data-issue-id="<%= issue.id %>" data-weight="<%= issue.weight %>" data-status-id="<%= issue.status_id %>">
  18 + <li class="card priority-<%= issue.priority.id.to_s %> <%= issue.tracker.name.downcase.strip.gsub(' ', '-').gsub(/[^\w-]/, '') %>" id="issue_<%= issue.id %>" data-issue-id="<%= issue.id %>" data-weight="<%= issue.weight %>" data-status-id="<%= issue.status_id %>">
19 19 <div class="issue">
20 20 <div class="issue-heading">
21 21 <p class="issue-number meta">
22 22 <input type="checkbox" name="ids[]" value="<%= issue.id.to_s %>" />
23 23 <%= link_to "#{issue.tracker} ##{issue.id.to_s}", :controller => :issues, :action => :show, :id => issue.id %>
  24 + </p>
  25 + <p class="issue-priority">
  26 + <%= issue.priority.name %>
24 27 </p>
25 28 </div>
26 29 <h3><%= link_to issue.subject, :controller => :issues, :action => :show, :id => issue.id %></h3>
assets/stylesheets/taskboard.css View file @ 2c8364f
... ... @@ -117,4 +117,10 @@
117 117 background: #ccc;
118 118 padding: 3px;
119 119 }
  120 +
  121 +.issue-priority {
  122 + float: right;
  123 + padding: 2px;
  124 + font-size: 9px;
  125 +}