-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_page_stream_mobile.html
62 lines (50 loc) · 1.76 KB
/
_page_stream_mobile.html
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
{% if page.public_activities_count > 0 or page.is_commentable? %}
<div class="content_container_bottom" id="stream">
<div id="comment">
{% if page.public_activities_count == 1 %}
<h4>Showing 1 reaction</h4>
{% elsif page.public_activities_count > 1 %}
<h4>Showing {{ page.public_activities_count }} reactions</h4>
{% elsif page.is_commentable? %}
<h4>Be the first to comment</h4>
{% endif %}
<div class="clear"></div>
</div>
{% if page.is_commentable? and page.type_name != 'Petition' and page.type_name != 'Endorsement' %}
<div class="one_column" class="padtop">
<div class="form_wrap">
<div class="form">
{% form_for comment %}
<div class="form_errors">{% error_messages_for comment %}</div>
{% text_area "content", class:"textarea" %}
<div class="padtopless">
{% submit_tag "Post your comment", class:"submit-button" %}
{% if request.sorta_logged_in? %}
<div class="padtopmore padbottomless" style="font-size: 12px;">
<span id="page_follow_{{ page.id }}">
{% include "page_follow" %}
</span> |
{% if site.has_rule_page? %}
<a href="{{ site.rule_page.url }}">View the site rules</a>
{% endif %}
</div>
{% endif %}
<div class="form_submit"></div>
</div>
{% endform_for %}
</div>
</div>
</div>
{% endif %}
<div id="reactions">
<div id="page_activities" class="activities">
{% for activity in page.activities %}
<div class="activity">
{{ activity.show_page_view }}
</div>
{% endfor %}
</div>
{{ page.activities | paginate }}
</div>
</div>
{% endif %}