1
0
Fork 0
MSU-Course-Alerter/app/views/alerts/show.html.erb

27 lines
1.2 KiB
Text

<%- model_class = Alert -%>
<div class="page-header">
<h1><%=t '.title', :default => model_class.model_name.human %></h1>
</div>
<dl class="dl-horizontal">
<dt><strong><%= model_class.human_attribute_name(:user_id) %>:</strong></dt>
<dd><%= @alert.user_id %></dd>
<dt><strong><%= model_class.human_attribute_name(:department) %>:</strong></dt>
<dd><%= @alert.department %></dd>
<dt><strong><%= model_class.human_attribute_name(:course) %>:</strong></dt>
<dd><%= @alert.course %></dd>
<dt><strong><%= model_class.human_attribute_name(:alerted) %>:</strong></dt>
<dd><%= @alert.alerted %></dd>
</dl>
<div class="form-actions">
<%= link_to t('.back', :default => t("helpers.links.back")),
alerts_path, :class => 'btn' %>
<%= link_to t('.edit', :default => t("helpers.links.edit")),
edit_alert_path(@alert), :class => 'btn' %>
<%= link_to t('.destroy', :default => t("helpers.links.destroy")),
alert_path(@alert),
:method => 'delete',
:data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) },
:class => 'btn btn-danger' %>
</div>