Skip to content

Commit

Permalink
Make result status messages more human-readable
Browse files Browse the repository at this point in the history
  • Loading branch information
jigarius committed Apr 30, 2019
1 parent 02b2d6d commit 902940e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/sitediff/files/report.html.erb
Expand Up @@ -42,12 +42,12 @@

<div class="form-item form-checkboxes form-item--status">
<div class="form-checkbox">
<input type="checkbox" id="input-status-failure" value="failure" />
<label for="input-status-failure">Failures</label>
<input type="checkbox" id="input-status-changed" value="changed" />
<label for="input-status-changed">Changed</label>
</div>
<div class="form-checkbox">
<input type="checkbox" id="input-status-success" value="success" />
<label for="input-status-success">Successes</label>
<input type="checkbox" id="input-status-unchanged" value="unchanged" />
<label for="input-status-unchanged">Unchanged</label>
</div>
<div class="form-checkbox">
<input type="checkbox" id="input-status-error" value="error" />
Expand Down
2 changes: 1 addition & 1 deletion lib/sitediff/result.rb
Expand Up @@ -19,7 +19,7 @@ class Result < Struct.new(
STATUS_SUCCESS = 0 # Identical before and after
STATUS_FAILURE = 1 # Different before and after
STATUS_ERROR = 2 # Couldn't fetch page
STATUS_TEXT = %w[success failure error].freeze
STATUS_TEXT = %w[unchanged changed error].freeze

attr_reader :status, :diff

Expand Down

0 comments on commit 902940e

Please sign in to comment.