Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

center layout

  • Loading branch information...
commit f3e27537c3ca6aabd0584cb514b743d7c0e96529 1 parent 058391e
@barthezslavik authored
View
3  app/views/layouts/application.html.haml
@@ -6,4 +6,5 @@
= javascript_include_tag "application"
= csrf_meta_tags
%body
- = yield
+ .center
+ = yield
View
25 app/views/samples/index.html.haml
@@ -1,14 +1,13 @@
-.center
- - @samples.each do |sample|
- .block
- = link_to sample.name, sample, data:{ push: true }
- %br
- %br
- - screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot
- = link_to screenshot, sample
- /= link_to 'Edit', edit_sample_path(sample)
- /= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete
+- @samples.each do |sample|
+ .block
+ = link_to sample.name, sample, data:{ push: true }
+ %br
+ %br
+ - screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot
+ = link_to screenshot, sample
+ /= link_to 'Edit', edit_sample_path(sample)
+ /= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete
- %br.both
- %br
- = link_to 'Добавить', new_sample_path, :class => "link"
+%br.both
+%br
+= link_to 'Добавить', new_sample_path, :class => "link"
View
41 app/views/samples/show.html.haml
@@ -1,28 +1,27 @@
-.center
- = link_to "Главная", "/", :class => "link"
- %br
- %br
- .wide_block
- /%p#notice= notice
-
- .left
- %h2= @sample.name
- .right
- %br
- = link_to 'Edit', edit_sample_path(@sample), :class => "link"
+= link_to "Главная", "/", :class => "link"
+%br
+%br
+.wide_block
+ /%p#notice= notice
+ .left
+ %h2= @sample.name
+ .right
%br
- %br.both
+ = link_to 'Edit', edit_sample_path(@sample), :class => "link"
- %pre= @sample.description
- - if @sample.screenshot_file_name?
- =link_to image_tag(@sample.screenshot.url :large), @sample.screenshot.url
+ %br
+ %br.both
- %br
- %br
+ %pre= @sample.description
+ - if @sample.screenshot_file_name?
+ =link_to image_tag(@sample.screenshot.url :large), @sample.screenshot.url
+
+ %br
+ %br
- -if @sample.demo?
- =link_to "Demo", "/#{@sample.demo}", :class => "link"
+ -if @sample.demo?
+ =link_to "Demo", "/#{@sample.demo}", :class => "link"
- /= link_to 'Back', samples_path
+ /= link_to 'Back', samples_path
Please sign in to comment.
Something went wrong with that request. Please try again.