diff options
| author | mo k <mo@mokhan.ca> | 2012-09-20 07:44:08 -0600 |
|---|---|---|
| committer | mo k <mo@mokhan.ca> | 2012-09-20 07:44:08 -0600 |
| commit | 3392aa3e84c4990b233774d4a19e1f1e366c5ed8 (patch) | |
| tree | 82b7fe742ad6ee75eab5d1c4e1886ff023e8f075 /app/views/tutorials | |
| parent | 5f814cde13d04b3cd6fbc1ad05f2829e70d621d7 (diff) | |
create a :page_header content section and put the Add Tutorial button up there.
Diffstat (limited to 'app/views/tutorials')
| -rw-r--r-- | app/views/tutorials/index.html.erb | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/app/views/tutorials/index.html.erb b/app/views/tutorials/index.html.erb index d58f7260..4339c6c2 100644 --- a/app/views/tutorials/index.html.erb +++ b/app/views/tutorials/index.html.erb @@ -2,20 +2,20 @@ <% content_for :javascript do -%> <script type="text/javascript"> $(function(){ - var container = $('.row'); + var container = $('#tutorials-div'); container.imagesLoaded(function(){ - container.masonry({ itemSelector : '.span4' }); + container.masonry({ + itemSelector : '.span4', + isResizable: true + }); }); }); </script> <% end -%> -<div class="row"> - <div class="span12"> - <%= link_to 'Add Tutorial', new_tutorial_path, :class => "btn btn-primary" %> - </div> -</div> -<br /> -<div class="row"> +<% content_for :page_header do -%> + <%= link_to 'Add Tutorial', new_tutorial_path, :class => "btn btn-primary" %> +<% end -%> +<div id="tutorials-div" class="row"> <div class="span12"> <ul class="thumbnails"> <% @tutorials.each do |tutorial| %> |
