Skip to content

Commit

Permalink
Implement subscription box
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc Altmann committed Feb 2, 2015
1 parent 6f93aee commit 4301f91
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
Binary file added app/assets/images/cfk_abo_box.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 14 additions & 1 deletion app/assets/stylesheets/controller/articles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ ul.category-selected-list {
}

// the sidebar box for books claim

/*
.books {
padding: 0;
margin-top: 1em;
Expand All @@ -429,6 +429,19 @@ ul.category-selected-list {
margin: 0;
}
}
*/

// the sidebar box for subscriptions
.subscription {
padding: 0;
margin-bottom: 1em;

img {
display: block;
width: 100%;
margin: 0;
}
}

// activation links

Expand Down
2 changes: 1 addition & 1 deletion app/views/articles/show.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@
- else
= render "articles/show/seller", article: resource, libraries: @containing_libraries
.sidebar
= render 'articles/show/subscription'
= render "articles/show/coop"
= render 'articles/show/books'
4 changes: 4 additions & 0 deletions app/views/articles/show/_subscription.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.subscription
= link_to 'https://www.startnext.com/rundesache', target: '_blank' do
= image_tag 'cfk_abo_box.png', alt: 'Das Runde Sache Abo. Schöne und faire'\
' Dinge jeden Monat zu Dir nach Hause!'

0 comments on commit 4301f91

Please sign in to comment.