Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
058391e
commit f3e2753
Showing
3 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,14 +1,13 @@ | |||
.center | - @samples.each do |sample| | ||
- @samples.each do |sample| | .block | ||
.block | = link_to sample.name, sample, data:{ push: true } | ||
= link_to sample.name, sample, data:{ push: true } | %br | ||
%br | %br | ||
%br | - screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot | ||
- screenshot = image_tag sample.screenshot.url(:medium) if sample.screenshot | = link_to screenshot, sample | ||
= link_to screenshot, sample | /= link_to 'Edit', edit_sample_path(sample) | ||
/= link_to 'Edit', edit_sample_path(sample) | /= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete | ||
/= link_to 'Destroy', sample, :confirm => 'Are you sure?', :method => :delete | |||
%br.both | %br.both | ||
%br | %br | ||
= link_to 'Добавить', new_sample_path, :class => "link" | = link_to 'Добавить', new_sample_path, :class => "link" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,28 +1,27 @@ | |||
.center | = link_to "Главная", "/", :class => "link" | ||
= link_to "Главная", "/", :class => "link" | %br | ||
%br | %br | ||
%br | .wide_block | ||
.wide_block | /%p#notice= notice | ||
/%p#notice= notice | |||
.left | |||
%h2= @sample.name | |||
.right | |||
%br | |||
= link_to 'Edit', edit_sample_path(@sample), :class => "link" | |||
.left | |||
%h2= @sample.name | |||
.right | |||
%br | %br | ||
%br.both | = link_to 'Edit', edit_sample_path(@sample), :class => "link" | ||
|
|
||
%pre= @sample.description | %br | ||
- if @sample.screenshot_file_name? | %br.both | ||
=link_to image_tag(@sample.screenshot.url :large), @sample.screenshot.url | |||
|
|
||
%br | %pre= @sample.description | ||
%br | - if @sample.screenshot_file_name? | ||
=link_to image_tag(@sample.screenshot.url :large), @sample.screenshot.url | |||
|
|||
%br | |||
%br | |||
|
|
||
-if @sample.demo? | -if @sample.demo? | ||
=link_to "Demo", "/#{@sample.demo}", :class => "link" | =link_to "Demo", "/#{@sample.demo}", :class => "link" | ||
|
|
||
|
|
||
/= link_to 'Back', samples_path | /= link_to 'Back', samples_path |