Permalink
Browse files

cleaning

  • Loading branch information...
1 parent b34c72a commit b90d0d513e3e41a05a2cdd045bac97720606a94a progressbarsk committed Sep 2, 2012
Showing with 0 additions and 67 deletions.
  1. +0 −36 app/views/templates/blog_home.html.erb
  2. +0 −31 app/views/templates/calendar_home.html.erb
@@ -1,36 +0,0 @@
-<% if @blog_page %>
-<section id="blogs">
- <header>
- <h2><%= link_to(t('blogs.title'), @blog_page.url) %>
- </h2>
- </header>
- <div class="content">
- <% if @blog_posts.any? %>
- <% @blog_posts.each do |post| %>
- <div>
- <h4>
- <%= link_to blog_post_url(post) do -%>
- <%= truncate post.title,
- :length => 75,
- :preserve_html_tags => false %>
- <% end %>
- </h4>
-
- <%= truncate post.body,
- :length => 160,
- :preserve_html_tags => true %>
- </div>
- <% end %>
- <% end %>
- </div>
- <footer>
- <div class="float-left">
- <a href="/blog/feed.rss"><img alt="RSS" src="/s.gif" class="sprites sprite-icon-rss-32" /></a>
- </div>
- <div class="float-right">
- <%= link_to(t('blogs.archive_posts'), @blog_page.url) %>
- </div>
- <div class="reset">&#160;</div>
- </footer>
-</section>
-<% end %>
@@ -1,31 +0,0 @@
-<% if @events_page %>
-<section id="calendar">
- <header>
- <h2><%= link_to(t('events'), @events_page.url) %>
- </h2>
- </header>
- <div class="content">
- <% if @event %>
- <div class="event">
- <h3><%= link_to @event.title, @event %></h3>
- <section class="start_end">
- <span class="start"><%= @event.start_at.strftime('%b %e, %Y %l:%M %p') %></span><span class="delim">&nbsp;|&nbsp;</span><span class="end"><%= @event.end_at.strftime('%b %e, %Y %l:%M %p') %></span>
- </section>
- <div class="description">
- <%= simple_format(truncate strip_tags(@event.description), :length => 256) %>
- <%= link_to('Prejsť na detail.', @events_page.url) %>
- </div>
- </div>
- <% else %>
- <p>Momentálne nieje v kalendári zaznamenaná žiadna oficiálna akcia.<p>
- <% end %>
- <hr />
- <div id="new-action">
- <a href="/akcie-a-organizacia" class="button large">Zorganizovať akciu</a>
- <p class="note">
- <a href="/akcie-a-organizacia#what">Bližšie informácie o možnostiach a podmienkach</a>.
- </p>
- </div>
- </div>
-</section>
-<% end %>

0 comments on commit b90d0d5

Please sign in to comment.