/app/views/meetups/show.html.erb
Ruby HTML | 92 lines | 88 code | 4 blank | 0 comment | 2 complexity | 5bf5b062434972cf8980189efdc4c9cf MD5 | raw file
- <% title "#{@meetup.name}"%>
- <div class="event_details">
- <h2><%=t "details"%></h2>
- <ul class="details">
- <li>
- <%=label :location, t("location")%>
- <span id="location" class="v">
- <%=@meetup.location%>
- <small>
- (<%=link_to t("Map"), "http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=#{@meetup.location}&ie=UTF8&hq=&ht=h&z=16&iwloc=A", :target => :blank %>)</small>
- </span>
- </li>
- <li>
- <%=label :description, t("description")%>
- <span id="description" class="v"><%=@meetup.description%></span>
- </li>
- <li>
- <%=label :happend_at, t("talk.date")%>
- <span id="happening_at" class="v">
- <%=@meetup.human_date%> at <%=@meetup.happening_at.strftime("%H:%M")%>
- (<%=t('time.in')%> <%=distance_of_time_in_words(Time.now, @meetup.happening_at)%>)
- </span>
- </li>
- </ul>
- <br/>
- <iframe src="http://www.facebook.com/plugins/like.php?href=<%=url_for(:only_path => false, :overwrite_params=> { })%>&send=true&layout=standard&width=450&show_faces=true&action=like&colorscheme=light&font=trebuchet+ms&height=80" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:450px; height:80px;" allowTransparency="true"></iframe>
- <h2><%=t("meetup.presentations")%></h2>
- <ul class="presentations">
- <%@meetup.presentations.each do |presentation|%>
- <li>
- <%=image_tag presentation.user.account.gravatar, :size => "32x32"%>
- <strong><%=link_to presentation.name, presentation_path(presentation.id)%></strong>
- <br/>
- <%=link_to presentation.user.account.name, presentation.user.account.url%>
- <<%=presentation.user.email%>>
- <%=link_to image_tag("vote_like.gif"), { :controller => :presentations, :action => :vote,
- :id => presentation.id} if user_signed_in?%>
- <small>(<%=presentation.votes.count%> <%=t "votes"%>)</small>
- </li>
- <%end%>
- </ul>
- </div>
- <div class="attendees_list">
- <h2>
- <%=t("meetup.attendees")%>
- <%if user_signed_in? and not @meetup.user_attends?(current_user)%>
- <%=link_to t("meetup.attend")+'!', url_for(:controller => :meetups, :action => :attend, :id => @meetup.id, :class => :green)%>
- <%end%>
- </h2>
- <ul class="attendees">
- <%@meetup.attendees.each do |user|%>
- <li>
- <%=image_tag user.account.gravatar, :size => "32x32"%>
- <%=link_to user.account.name, user.account.url%> <<%=user.email%>>
- <br/>
- <%=raw t("meetup.attendance", :status => "<u>"+(@meetup.user_attends?(user) ? t("meetup.attend_small") : t("meetup.not_attend"))+"</u>")%>
- </li>
- <%end%>
- </ul>
- <p style="text-align:right">
- <a href="http://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="BrnoRuby">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script>
- </p>
- <br/>
- <h2><%=t "timeline.name"%></h2>
- <div class="wall">
- <%=form_for @meetup.timelines.new do |f|%>
- <%=f.hidden_field :meetup_id, :value => @meetup.id%>
- <%=f.text_area :message%>
- <span class="a">
- <button class="cupid-green">
- <%=link_to t("talk.submit"), { :controller => :presentations, :action => :new,
- :"presentation[meetup_id]" => @meetup.id}%>
- </button>
- </span>
- <button class="cupid-green" type="submit"><%=t("timeline.post")%></button>
- <%end if user_signed_in?%>
- <ul class="presentations" id="timeline">
- <%@meetup.timelines.each do |msg|%>
- <li>
- <%=image_tag msg.user.account.gravatar, :size => "32x32"%>
- <%=link_to msg.user.account.name, msg.user.account.url%>
- <%=msg.message%> <small>(<%=distance_of_time_in_words(Time.now, msg.created_at)%> ago)</small>
- </li>
- <%end%>
- </ul>
- </div>
- </div>
- <hr/>