Commit 5d932494d86289eabf028463ca3986550173b907

Authored by Braulio Bhavamitra
1 parent 5992a0fc

Fix events view

app/views/events/events.rhtml
1   -<h1 id='agenda-title'>
2   - <div id='agenda-toolbar'>
3   - <%= button :back, _('Back to %s') % profile.name, profile.url %>
4   - <% if user && user.has_permission?('post_content', profile) %>
5   - <%= button :new, _('New event'), myprofile_url(:controller => 'cms', :action => 'new', :type => 'Event') %>
6   - <% end %>
7   - </div>
8   - <%= _("%s's events") % profile.name %>
9   -</h1>
  1 +<h1 id='agenda-title'><%= _("%s's events") % profile.name %></h1>
  2 +
  3 +<div id='agenda-toolbar'>
  4 + <%= button :back, _('Back to %s') % profile.name, profile.url %>
  5 + <% if user && user.has_permission?('post_content', profile) %>
  6 + <%= button :new, _('New event'), myprofile_url(:controller => 'cms', :action => 'new', :type => 'Event') %>
  7 + <% end %>
  8 +</div>
  9 +
  10 +<div style="clear: both"></div>
10 11  
11 12 <%= render :partial => 'agenda' %>
... ...
public/stylesheets/application.css
... ... @@ -3217,9 +3217,7 @@ div#article-parent {
3217 3217 height: 90%;
3218 3218 }
3219 3219 #agenda-toolbar {
3220   - position: absolute;
3221   - right: 0;
3222   - top: -10px;
  3220 + float: right;
3223 3221 font-variant: normal;
3224 3222 font-weight: normal;
3225 3223 }
... ...