Permalink
Browse files

Small fixes

  • Loading branch information...
1 parent 0d3c09a commit 4f9e8b07aa0abd275b0f2d10954996a1860a4830 @eoftedal committed May 2, 2012
Showing with 4 additions and 5 deletions.
  1. +1 −1 app/models/risk.rb
  2. +1 −2 app/views/projects/export.html.erb
  3. +2 −2 public/stylesheets/style.css
View
2 app/models/risk.rb
@@ -5,7 +5,7 @@ class Risk < ActiveRecord::Base
belongs_to :risk_consequence
belongs_to :risk_probability
belongs_to :impact
- has_paper_trail :only => [:risk_consequence_id, :risk_probability_id, :impact_id, :risk_level_id]
+ has_paper_trail :only => [:risk_consequence_id, :risk_probability_id, :impact_id, :risk_level_id, :title, :description]
acts_as_taggable
acts_as_commentable
has_many :checklists
View
3 app/views/projects/export.html.erb
@@ -5,9 +5,8 @@
<title><%= @project.name %></title>
</head>
<body>
- <header class="date"><%= Date.today %> - <%= current_user.full_name %></header>
+ <header class="date"><%= Date.today %> - <%= current_user.full_name %> <% if (@tag) then %> - tag: <%= @tag %> <% end %></header>
<h1><%= @project.name %></h1>
-
<table class="risk_list">
<tr>
<th class="impact"></th>
View
4 public/stylesheets/style.css
@@ -271,7 +271,7 @@ h1 button.edit {
margin-bottom: 5px;
margin-left: 0px;
}
-.risks tr :first-child {
+.risks tr > *:first-child {
padding-left: 5px;
}
.risks tr:nth-child(2n) {
@@ -343,5 +343,5 @@ li.tag a {
}
li.tag a {
margin-left: 10px;
+ font-weight: bold;
}
-

0 comments on commit 4f9e8b0

Please sign in to comment.