-
Notifications
You must be signed in to change notification settings - Fork 1
/
show.html.erb
109 lines (106 loc) · 4.71 KB
/
show.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
<div id="content-top" class="large-caps red">
<%= @group.visible_name %>
<span class="button" style="float: right; opacity: 0;">
Follow<%= image_tag("plus.png", :alt => "plus", :class => "plus-img", :id => "") %>
</span>
</div>
<div id="content-left">
<div class="heading">
<div class="medium-grey" style="float: left">Info:</div>
<a href="" class="button" style="float: right">Edit Info</a>
<div class="clear"></div>
</div>
<div style="text-align: center">
<%= image_tag("group_logo.png", :alt => "Members", :class => "", :id => "", :width => "70%") %>
</div>
<div class="text-block">
<p class="small-black">About us</p>
<p><em><%= @group.group_type.name %></em></p>
<p><%= @group.description %></p>
</div>
<div class="text-block" style="text-align: left">
<p class="small-black" style="text-align: left">Officers</p>
<ul style="margin-left: 20px">
<% @group_users.each do |user| %>
<li><%= user.visible_name %></li>
<% end %>
</ul>
<!-- <img src="images/Members.png" width="165" height="108" alt="Members" />-->
</div>
<div class="text-block" style="text-align: left">
<p class="small-black">Website:
<% if @group.website != "None specified" %>
<a href="<%= @group_website %>"><%= @group.website %></a>
<% end %>
</p>
<p class="small-black">Email
<% if @group.email != "None specified" %>
<%= @group.email %>
<% end %>
</p>
</div>
</div>
<div id="content-center">
<div class="heading">
<div class="medium-grey" style="float: left">Posts:</div>
<span class="button" style="float: right">
New Post<%= image_tag("plus.png", :alt => "plus", :class => "plus-img", :id => "") %>
</span>
<div class="clear"></div>
</div>
<div class="text-block">
<p class="medium-black">Blog Post</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut sed tortor et erat faucibus aliquet quis id tellus. Sed augue magna, bibendum et suscipit vulputate, mattis in eros. Donec bibendum eleifend lacus, a consectetur nisl aliquam ac. Nam ut odio ac velit feugiat mattis ac vel massa. Sed dapibus laoreet lectus, a tempus quam porta at. Donec ornare dictum libero, sit amet blandit tortor condimentum ac. Donec sodales placerat est. Aenean a turpis at tortor auctor congue. Nunc interdum dapibus justo non mattis. In mattis nisi eget lacus iaculis egestas. Sed quam eros, ultricies consequat pharetra id, vulputate vel risus. Suspendisse potenti. Donec eros eros, congue non aliquet ac, cursus id lectus.</p>
</div>
<div class="text-block">
<p class="medium-black">Blog Post 2</p>
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut sed tortor et erat faucibus aliquet quis id tellus. Sed augue magna, bibendum et suscipit vulputate, mattis in eros. Donec bibendum eleifend lacus, a consectetur nisl aliquam ac. Nam ut odio ac velit feugiat mattis ac vel massa. Sed dapibus laoreet lectus, a tempus quam porta at. Donec ornare dictum libero, sit amet blandit tortor condimentum ac. Donec sodales placerat est. Aenean a turpis at tortor auctor congue. Nunc interdum dapibus justo non mattis. In mattis nisi eget lacus iaculis egestas. Sed quam eros, ultricies consequat pharetra id, vulputate vel risus. Suspendisse potenti. Donec eros eros, congue non aliquet ac, cursus id lectus.</p>
</div>
</div>
<div id="content-right">
<div class="heading">
<div class="medium-grey" style="float: left">Events:</div>
<span class="button" style="float: right">
New Event<%= image_tag("plus.png", :alt => "plus", :class => "plus-img", :id => "") %>
</span>
<div class="clear"></div>
</div>
<% if @group_upcoming_events && !@group_upcoming_events.empty? %>
<% for i in 0..3 %>
<% if @group_future_events[i] != nil %>
<% future_event = @group_future_events[i] %>
<div class="text-block">
<%= image_tag("ASSU_iCal.png", :alt => "iCal", :class => "ical", :id => "") %>
<strong><%= future_event.name %></strong>
<p><%= future_event.start_date %></p>
<p><%= future_event.locations[0].visible_name %></p>
</div>
<% else %>
<div class="text-block">
<%= image_tag("ASSU_iCal.png", :alt => "iCal", :class => "ical", :id => "") %>
<strong>Event name</strong>
<p>Time</p>
<p>Location</p>
</div>
<% end %>
<% end %>
<div class="medium-grey">Past Events:</div>
<% for i in 0..1 %>
<% if @group_past_events[i] != nil %>
<% past_event = @group_past_events[i] %>
<div class="text-block">
<%= image_tag("ASSU_iCal.png", :alt => "iCal", :class => "ical", :id => "") %>
<strong><%= past_event.name %></strong>
<p><%= past_event.start_date %></p>
<p><%= past_event.locations[0].visible_name %></p>
</div>
<% else %>
<div class="text-block">
<strong>Event name</strong>
<p>Date and Time</p>
<p>Location</p>
</div>
<% end %>
<% end %>
</div>
<div class="clear"></div>