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

32 lines
1.4 KiB
Text
Raw Normal View History

2013-04-02 02:43:01 -04:00
<%- 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>
2013-04-12 13:13:42 -04:00
<dt><strong><%= model_class.human_attribute_name(:sections) %>:</strong></dt>
<dd><%= @alert.sections.join(', ') %>&nbsp;</dd>
2013-04-03 19:44:01 -04:00
<dt><strong><%= model_class.human_attribute_name(:semester) %>:</strong></dt>
<dd><%= @alert.semester %></dd>
2013-04-02 02:43:01 -04:00
<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>