Skip to content

Commit

Permalink
Show value of Locked/Reset fields when value is false or not set.
Browse files Browse the repository at this point in the history
- Changed to show Yes/No values for better readability

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1733555
  • Loading branch information
h-kataria committed Jul 29, 2019
1 parent aa7b10b commit 0cd10fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/views/report/_db_show.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@
= _('Locked')
.col-md-8
%p.form-control-static
- if widget.set_data && widget.set_data[:locked]
= h(widget.set_data[:locked])
- if widget.set_data
= widget.set_data[:locked] ? _("Yes") : _("No")
.form-group
%label.control-label.col-md-2
= _('Reset Dashboard upon login')
.col-md-8
%p.form-control-static
- if widget.set_data && widget.set_data[:reset_upon_login]
= h(widget.set_data[:reset_upon_login])
- if widget.set_data
= widget.set_data[:reset_upon_login] ? _("Yes") : _("No")
%hr
= render :partial => 'db_widgets', :locals => {:widget => widget}

0 comments on commit 0cd10fe

Please sign in to comment.