This repository has been archived by the owner on Dec 6, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
show.html.haml
124 lines (96 loc) · 3.91 KB
/
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
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
- color = @single_event.category.try(:color)
.row.event.single-event
.span4
.black-bar.black-bar-wide
= render partial: 'modules/categories/indicator', locals: { size: '75px', color: color }
.black-bar-content.black-bar-with-date{ data: { hlcolor: color } }
.black-bar-top-part
.black-bar-date
= I18n.localize @single_event.occurrence, format: "%a, %d. %b %Y"
.black-bar-center-part
%h1.black-bar-title= @single_event.event.name
.black-bar-time= I18n.localize(@single_event.occurrence, format: "%H:%M Uhr")
.event-info
- if @single_event.name?
%h2= @single_event.name
.event-description
.event-content-field
.content-field-icon
%i.icon-info-sign
.content-field-text
= @single_event.description
- if @single_event.url.present?
.event-homepage
.event-content-field
.content-field-icon
%i.icon-home
.content-field-text
%a.hidden-link{ href: @single_event.url }= @single_event.url
- if @single_event.twitter.present?
.event-twitter-handle
.event-content-field
.content-field-icon
%i.icon-twitter
.content-field-text
%a.hidden-link{ href: "http://twitter.com/#{@single_event.twitter}" }
= "@#{@single_event.twitter}"
= render "events/map", event: @single_event
.map
%address.event-venue
anderScore GmbH<br>
Frankenwerft 54<br>
50123 Köln
%p.pull-right
Social Kram
.span2
%p whoa this is my side box
.left_side
- title @single_event.event_title
- if @single_event.name?
%h2
= @single_event.name
%h2
= @single_event.full_day ? @single_event.occurrence.strftime("%d.%m.%Y") : @single_event.occurrence.strftime("%d.%m.%Y um %H:%M")
-#= render "tags/tags", tag_list: @single_event.event.tag_list + @single_event.tag_list
- unless @single_event.description?
%p
%em
Keine Beschreibung vorhanden.
- if !user_signed_in?
Du könntest das ändern, wenn du dich #{link_to "anmeldest", new_user_session_path}.
- else
Du könntest das #{link_to "ändern", edit_event_single_event_path(@event, @single_event)}!
- else
= convert_markdown @single_event.description
= render "events/links", item: @single_event
%h3 Adresse
-#= render "events/map", event: @single_event
-#%div.map
= render "events/address",address: @single_event
%p
- if can? :update, @event
= link_to "Editieren", edit_event_single_event_path(@event, @single_event)
- if can? :delete, @single_event
= link_to "Löschen", event_single_event_path(@event, @single_event), method: :delete, :"data-confirm" => "Wirklich löschen?"
#twitter_like
<a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="hackcologne">Tweet</a>
<script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
#fb_like
#fb-root
<script src="http://connect.facebook.net/en_US/all.js#appId=213379535367603&xfbml=1"></script>
<fb:like href="#{event_url(@event)}" send="true" width="450" show_faces="false" font="" layout="button_count"></fb:like>
.right_side
%h3
Über #{link_to @event.name, @event}
- if @single_event.event_description.blank?
%p
%em
Keine Beschreibung vorhanden
- else
= truncate_html(convert_markdown(@single_event.event_description), 30, ellipsis: " ...")
#{link_to("Mehr Details »".html_safe, @event)}
%p= link_to "iCal für diesen Termin abonnieren", url_for(action: "index", controller: "subscribe", format: "ical", only_path: false, single_event_id: @single_event.id)
.clear
#participants
= render "participants"
= render partial: "modules/comments/comments", locals: {commentable: @single_event}