-
Notifications
You must be signed in to change notification settings - Fork 6
/
index.html.erb
168 lines (162 loc) · 6.12 KB
/
index.html.erb
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<div class="row">
<div class="span12">
<p class="lead">
Journal your life issues for your therapist to read before your next session.
</p>
</div>
</div>
<div class="row">
<div class="span5 offset2">
<%= high_chart("chart_id", @entries.mood_chart) do |c|%>
<%= "options.colors = #{chart_colors}".html_safe %>
<% end %>
</div>
<div class="span5">
<%= image_tag "illustration_placeholder.png" %>
</div>
</div>
<br />
<br />
<div class="row">
<div class="span6 offset3">
<button class="btn btn-primary btn-embossed btn-huge btn-block" type="button" href="#myModal" role="button" data-toggle="modal">
<i class="icon-heart"></i> Learn more
</button>
<div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal">
<div class="modal-header">
<button type="button" class="close fui-cross" data-dismiss="modal" aria-hidden="true"></button>
<h3>Learn more...</h3>
</div>
<div class="modal-body">
<div class="tabbable tabs-left">
<ul class="nav nav-tabs">
<li class="active">
<a href="#howitworks" data-toggle="tab">How it works</a>
</li>
<li>
<a href="#home" data-toggle="tab">VP of Product</a>
</li>
<li>
<a href="#profile" data-toggle="tab">VP of Technology</a>
</li>
<li>
<a href="#security" data-toggle="tab">Security & Privacy</a>
</li>
</ul>
<div id="myTabContent" class="tab-content">
<div class="tab-pane fade in active" id="howitworks">
<h5>
Why share?
</h5>
<p>
Knowing you better lets your therapist map better approaches to your issues.
</p>
<a href="#">Video demo of Spoutlets</a>
<%= image_tag "invitation_callout.png" %>
</div>
<div class="tab-pane fade" id="home">
<h4>Billie DeMott</h4>
<h5>Cofounder</h5>
<span>
<a href="http://www.linkedin.com/in/billiedemott"><i class="icon-linkedin"></i> </a>
</span>
<p>
Yeah it's Billie with an ie, i.e. I'm a girl. Interested in UI, UX, startups, entrepreneurship, witty wordplay and maintaining mental health.
</p>
</div>
<div class="tab-pane fade" id="profile">
<h4>Akshat Pradhan</h4>
<h5>Cofounder</h5>
<span>
<a href="http://www.linkedin.com/in/akshatpradhan"><i class="icon-linkedin"></i> </a>
</span>
<p>
Akshat Pradhan spearheaded IT security and coded on the Rails stack for ActBlue. He has held security and systems roles at places like VeriSign and is an alum of Clark University, majoring in Physics. He is the founder of the Boston Security Meetup, a large group discussing cyber security and platform architecture. He is also organizer of UX Boston, another group discussing user experience and design.
</p>
</div>
<div class="tab-pane fade" id="security">
<h4>Security & Privacy</h4>
<p>
We're not completely compliant. But we're getting there! Even we use this site, and don't want our information out there. So we take security & privacy very seriously. Please view our
<a href="http://github.com/akshatpradhan/information-security-policy">Information Security Policy</a>. Also, only you own the data, you can delete your account anytime by sending an email to akshat@spoutlets.com.
</p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br />
<br />
<div class="row">
<div class="span12">
<h3>
Recently shared entries
</h3>
<ul class="nav nav-list">
<li class="divider"></li>
</ul>
</div>
</div>
<!-- Entry -->
<% @entries.latest.each do |entry| %>
<div class="row">
<div class="span7">
<h4>
<%= entry.title %>
</h4>
</div>
</div>
<div class="row">
<div class="span8">
<p>
<%= simple_format(entry.content) %>
</p>
<span data-toggle="tooltip" data-placement="right" title="Shared with community">
<i class="icon-unlock"></i><small> by </small><i class="icon-user"> </i><small> anonymous on </small><i class="icon-calendar"> </i><small> <%= entry.created_at.to_date.strftime('%a %b %d, %Y') %> under</small>
<span class="label label-inverse"><%= entry.category %></span>
</span>
</div>
<div class="span3 offset1">
<span class="pull-right">
<div class="like_status" id="entry_status_<%= entry.id %>">
<%= like_status_for(entry, current_user) %>
<div id="entry_message_<%= entry.id %>"></div>
</div>
</span>
<br /><br />
<div class="like_action" id="entry_like_<%= entry.id %>"><%= like_button_for(entry, current_user) %></div>
<br /><br /><br />
<% if entry.happiness_level && entry.happiness_level > 0 %>
<p class="text-success">happiness</p>
<div class="progress">
<div class="bar bar-success" style="width: <%= width_for(entry.happiness_level) %>%;"></div>
</div>
<% end %>
<% if entry.anxiety_level && entry.anxiety_level > 0 %>
<p class="text-warning">anxiety</p>
<div class="progress">
<div class="bar bar-warning" style="width: <%= width_for(entry.anxiety_level) %>%;"></div>
</div>
<% end %>
<% if entry.irritation_level && entry.irritation_level > 0 %>
<p class="text-danger">irritation</p>
<div class="progress">
<div class="bar bar-danger" style="width: <%= width_for(entry.irritation_level) %>%;"></div>
</div>
<% end %>
</div>
</div>
<br />
<br />
<div class="row">
<div class="span12">
<ul class="nav nav-list">
<li class="divider"></li>
</ul>
</div>
</div>
<% end %><!-- end of Entry -->