OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/cells/views/components/on_off_status/show.erb

19 lines
484 B

<%# The javscript for this cell is included in `settings.js.erb`. %>
<div class="on-off-status-cell">
<% if enabled? %>
<span class="on-off-status -enabled">
<%= op_icon 'icon-yes' %>
<%= model[:on_text] %>
</span>
<p>
<%= model[:on_description] %>
</p>
<% else %>
<span class="on-off-status -disabled">
<%= op_icon 'icon-not-supported' %>
<%= model[:off_text] %>
</span>
<p><%= model[:off_description] %></p>
<% end %>
</div>