-
Notifications
You must be signed in to change notification settings - Fork 46
/
show.html.haml
30 lines (28 loc) · 938 Bytes
/
show.html.haml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
= content_for :meta do
<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">
= render :partial => 'shared/header_vote' unless request.xhr?
%table.table.table-striped
%thead
%tr
%th{:colspan => 2}
%h4= @question.name.strip
%tbody
%tr
%th= t('items.idea')
%td{:width=>'80%'}= h @choice.data.strip
%tr
%th= t('items.added_on')
%td= @choice.created_at.getlocal.strftime("%m/%d/%Y")
%tr
%th= t('items.score')
%td= @choice.score.round.to_s + ' ' + link_to('', '#score_explanation', :"data-toggle" => 'modal', :"data-dismiss" => 'modal', :class => 'glyphicon glyphicon-question-sign')
%tr
%th= t('items.completed_contests')
%td#num_votes= @num_votes
- unless request.xhr?
#score_explanation.hide.modal.fade
.modal-header
%button.close{:"data-dismiss" => "modal"}x
%h2= t('items.about_scoring')
.modal-body
=t('items.score_explain')