35 lines
794 B
Plaintext
35 lines
794 B
Plaintext
|
<% # encoding: utf-8 %>
|
||
|
|
||
|
<%
|
||
|
data = action_data
|
||
|
@survey = data["survey"]
|
||
|
@time_range = data["time_range"]
|
||
|
%>
|
||
|
|
||
|
<article class="show-survey" id="spen-survey">
|
||
|
|
||
|
<h1 class="show-title">
|
||
|
<span><%= @survey.title %></span>
|
||
|
</h1>
|
||
|
|
||
|
<ul class="post-metadata list-unstyled">
|
||
|
<li class="metadata-date">
|
||
|
<i class="fa fa-calendar fa-fw"></i>
|
||
|
<span class="date"><%= @time_range %></span>
|
||
|
</li>
|
||
|
</ul>
|
||
|
|
||
|
<% if !@survey.description.blank? %>
|
||
|
<blockquote>
|
||
|
<p><%= nl2br(@survey.description) %></p>
|
||
|
</blockquote>
|
||
|
<% end %>
|
||
|
|
||
|
</article>
|
||
|
|
||
|
<% if !params[:page_no].blank? %>
|
||
|
<%= link_to t('back'), page_for_survey+"?page_no=#{params[:page_no]}", :class => 'btn btn-primary' %>
|
||
|
<% else %>
|
||
|
<%= link_to t('back'), page_for_survey, :class => 'btn btn-primary' %>
|
||
|
<% end %>
|