design
This commit is contained in:
@@ -2,35 +2,35 @@
|
||||
// They will automatically be included in application.css.
|
||||
// You can use Sass (SCSS) here: http://sass-lang.com/
|
||||
|
||||
.modal.fade {
|
||||
top: -25%;
|
||||
transition: opacity 0.3s linear 0s, top 0.3s ease-out 0s;
|
||||
}
|
||||
.modal-gallery {
|
||||
max-height: none;
|
||||
outline: medium none;
|
||||
width: auto;
|
||||
}
|
||||
.modal {
|
||||
color: #333333;
|
||||
}
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
.modal {
|
||||
background-clip: padding-box;
|
||||
background-color: #FFFFFF;
|
||||
border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
border-radius: 6px 6px 6px 6px;
|
||||
box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
||||
left: 50%;
|
||||
margin-left: -280px;
|
||||
outline: medium none;
|
||||
position: fixed;
|
||||
top: 10%;;
|
||||
z-index: 1050;
|
||||
}
|
||||
.fade {
|
||||
opacity: 0;
|
||||
transition: opacity 0.15s linear 0s;
|
||||
}
|
||||
//.modal.fade {
|
||||
// top: -25%;
|
||||
// transition: opacity 0.3s linear 0s, top 0.3s ease-out 0s;
|
||||
//}
|
||||
//.modal-gallery {
|
||||
// max-height: none;
|
||||
// outline: medium none;
|
||||
// width: auto;
|
||||
//}
|
||||
//.modal {
|
||||
// color: #333333;
|
||||
//}
|
||||
//.hide {
|
||||
// display: none;
|
||||
//}
|
||||
//.modal {
|
||||
//background-clip: padding-box;
|
||||
// background-color: #FFFFFF;
|
||||
// border: 1px solid rgba(0, 0, 0, 0.3);
|
||||
//border-radius: 6px 6px 6px 6px;
|
||||
// box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3);
|
||||
// left: 50%;
|
||||
// margin-left: -280px;
|
||||
// outline: medium none;
|
||||
// position: fixed;
|
||||
// top: 10%;;
|
||||
// z-index: 1050;
|
||||
//}
|
||||
//.fade {
|
||||
// opacity: 0;
|
||||
// transition: opacity 0.15s linear 0s;
|
||||
//}
|
||||
@@ -1,27 +1,16 @@
|
||||
<h1>Listing galleries</h1>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th>Name</th>
|
||||
<th>Desc</th>
|
||||
<th>Datum</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
<% @galleries.each do |gallery| %>
|
||||
<tr>
|
||||
<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>
|
||||
<% @galleries.each_slice(2) do |row| %>
|
||||
<div class="row-fluid">
|
||||
<% row.each do |gallery| %>
|
||||
<div class="span6">
|
||||
<%=link_to gallery.name, gallery %>
|
||||
<%= gallery.desc %>
|
||||
<%= gallery.datum %>
|
||||
<br>
|
||||
<%= link_to 'Edit', edit_gallery_path(gallery) %> | <%= link_to 'Destroy', gallery, method: :delete, data: { confirm: 'Are you sure?' } %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
</table>
|
||||
|
||||
<br />
|
||||
|
||||
<%= link_to 'New Gallery', new_gallery_path %>
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
<% @gallery.fotos.each do |f| %>
|
||||
|
||||
<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 %>
|
||||
|
||||
Reference in New Issue
Block a user