Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix links

  • Loading branch information...
commit 9b790834a464219465cfa93c95e30b9d9b3228e0 1 parent 4cbb71f
@barthezslavik authored
View
4 app/assets/stylesheets/main.css.sass
@@ -54,8 +54,10 @@ pre
background: #fff
overflow: auto
padding: 10px
+ img
+ border: 2px solid #f2f1f0
-.add
+.link
background: #fff
padding: 8px
margin: 5px
View
12 app/views/samples/edit.html.haml
@@ -1,7 +1,7 @@
-%h1 Editing sample
+.wide_block
+ = link_to 'Back', samples_path, :class => "link"
+ %br
+ %br
+ = render 'form'
-= render 'form'
-
-= link_to 'Show', @sample
-\|
-= link_to 'Back', samples_path
+ /= link_to 'Show', @sample
View
2  app/views/samples/index.html.haml
@@ -11,4 +11,4 @@
%br.both
%br
- = link_to 'Добавить', new_sample_path, :class => "add"
+ = link_to 'Добавить', new_sample_path, :class => "link"
View
11 app/views/samples/show.html.haml
@@ -1,11 +1,14 @@
+= link_to "Главная", "/", :class => "link"
+%br
+%br
.wide_block
- %p#notice= notice
+ /%p#notice= notice
.left
%h2= @sample.name
.right
%br
- = link_to 'Edit', edit_sample_path(@sample)
+ = link_to 'Edit', edit_sample_path(@sample), :class => "link"
%br
%br.both
@@ -15,7 +18,9 @@
=link_to image_tag(@sample.screenshot.url :large), @sample.screenshot.url
%br
- =link_to "Demo", "/#{@sample.demo}"
+ %br
+
+ =link_to "Demo", "/#{@sample.demo}", :class => "link"
/= link_to 'Back', samples_path
Please sign in to comment.
Something went wrong with that request. Please try again.