This commit is contained in:
Thomas Blazek
2013-08-27 19:39:00 +02:00
parent b92be5b141
commit 8dd2252954
3 changed files with 45 additions and 56 deletions

View File

@@ -2,35 +2,35 @@
// They will automatically be included in application.css. // They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/ // You can use Sass (SCSS) here: http://sass-lang.com/
.modal.fade { //.modal.fade {
top: -25%; // top: -25%;
transition: opacity 0.3s linear 0s, top 0.3s ease-out 0s; // transition: opacity 0.3s linear 0s, top 0.3s ease-out 0s;
} //}
.modal-gallery { //.modal-gallery {
max-height: none; // max-height: none;
outline: medium none; // outline: medium none;
width: auto; // width: auto;
} //}
.modal { //.modal {
color: #333333; // color: #333333;
} //}
.hide { //.hide {
display: none; // display: none;
} //}
.modal { //.modal {
background-clip: padding-box; //background-clip: padding-box;
background-color: #FFFFFF; // background-color: #FFFFFF;
border: 1px solid rgba(0, 0, 0, 0.3); // border: 1px solid rgba(0, 0, 0, 0.3);
border-radius: 6px 6px 6px 6px; //border-radius: 6px 6px 6px 6px;
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); // box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
left: 50%; // left: 50%;
margin-left: -280px; // margin-left: -280px;
outline: medium none; // outline: medium none;
position: fixed; // position: fixed;
top: 10%;; // top: 10%;;
z-index: 1050; // z-index: 1050;
} //}
.fade { //.fade {
opacity: 0; // opacity: 0;
transition: opacity 0.15s linear 0s; // transition: opacity 0.15s linear 0s;
} //}

View File

@@ -1,27 +1,16 @@
<h1>Listing galleries</h1> <h1>Listing galleries</h1>
<table> <% @galleries.each_slice(2) do |row| %>
<tr> <div class="row-fluid">
<th>Name</th> <% row.each do |gallery| %>
<th>Desc</th> <div class="span6">
<th>Datum</th> <%=link_to gallery.name, gallery %>
<th></th> <%= gallery.desc %>
<th></th> <%= gallery.datum %>
<th></th> <br>
</tr> <%= link_to 'Edit', edit_gallery_path(gallery) %> | <%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %>
</div>
<% @galleries.each do |gallery| %> <% end %>
<tr> </div>
<td><%= gallery.name %></td>
<td><%= gallery.desc %></td>
<td><%= gallery.datum %></td>
<td><%= link_to 'Show', gallery %></td>
<td><%= link_to 'Edit', edit_gallery_path(gallery) %></td>
<td><%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %> <% end %>
</table>
<br />
<%= link_to 'New Gallery', new_gallery_path %> <%= link_to 'New Gallery', new_gallery_path %>

View File

@@ -34,7 +34,7 @@
<% @gallery.fotos.each do |f| %> <% @gallery.fotos.each do |f| %>
<a href="<%= f.datei.resized.url%>" title="<%=f.title%>" data-gallery="gallery"> <a href="<%= f.datei.resized.url%>" title="<%=f.title%>" data-gallery="gallery">
<%=image_tag(f.datei.big_thumb.url,{:class=>"img-polaroid"}) %></a> <%=image_tag(f.datei.thumb.url,{:class=>"img-polaroid"}) %></a>
<% end %> <% end %>