Skip to content

Commit

Permalink
Merge pull request #124 from mansam/update-image-view-to-differentiat…
Browse files Browse the repository at this point in the history
…e-between-snapshots-and-images

Add special handling for `image?` column in ApplicationController
  • Loading branch information
mzazrivec authored Mar 15, 2017
2 parents 18093b3 + 06d0403 commit 5c26251
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/application_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -900,6 +900,8 @@ def view_to_hash(view)
celltext = row[col].titleize
when 'hardware.bitness'
celltext = row[col] ? "#{row[col]} bit" : ''
when 'image?'
celltext = row[col] ? _("Image") : _("Snapshot")
else
# Use scheduled tz for formatting, if configured
if ['miqschedule'].include?(view.db.downcase)
Expand Down

0 comments on commit 5c26251

Please sign in to comment.