Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Nice portfolios

  • Loading branch information...
commit 387d6357a197bad15be659793ddb76c658c039bb 1 parent eec35b0
@fern4lvarez authored
View
10 app/assets/stylesheets/epatterns.css
@@ -134,17 +134,22 @@ body {
margin-right: 3px;
}
+#market .portfolio_box {
+ background: url('../images/portfolio.png') no-repeat top left;
+ padding-left: 150px;
+}
+
#market .portfolio_title {
font: 120% bold;
}
-#market .item_price, #market .total_line {
+#market .work_price, #market .total_line {
text-align: right;
}
#market .total_line .total_cell {
font-weight: bold;
- borde-top: 1px solid #595;
+ border-top: 2px solid #3F464A;
}
#banner {
@@ -186,7 +191,6 @@ body {
width: 144px;
background: #6D6D6D;
border-top: 2px solid;
- border-left: 2px solid;
}
#side a {
View
37 app/views/portfolios/show.html.erb
@@ -1,19 +1,20 @@
-<div class="portfolio_title">Your Portfolio</div>
-<table>
- <% @portfolio.line_works.each do |work| %>
- <tr>
- <td><%= work.quantity %>&times;</td>
- <td><%= work.pattern.title %></td>
- <td class="work_price"><%= currency_euro work.total_price %></td>
- </tr>
- <% end %>
+<div class="portfolio_box">
+ <div class="portfolio_title">Your Portfolio</div>
+ <table>
+ <% @portfolio.line_works.each do |work| %>
+ <tr>
+ <td><%= work.quantity %>&times;</td>
+ <td><%= work.pattern.title %></td>
+ <td class="work_price"><%= currency_euro work.total_price %></td>
+ </tr>
+ <% end %>
+
+ <tr class="total_line">
+ <td colspan="2">Total</td>
+ <td class="total_cell"><%= currency_euro @portfolio.total_price %></td>
+ </tr>
+
+ </table>
- <tr class="total_line">
- <td colspan="2">Total</td>
- <td class="total_cell"><%= currency_euro @portfolio.total_price %></td>
- </tr>
-
-</table>
-
-
-<%= button_to 'Empty portfolio', @portfolio, :method => :delete, :confirm => 'Are you sure?' %>
+ <%= button_to 'Empty portfolio', @portfolio, :method => :delete, :confirm => 'Are you sure?' %>
+</div>
View
BIN  public/images/portfolio.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
0  script/rails 100644 → 100755
File mode changed
View
1  test/fixtures/patterns.yml
@@ -17,4 +17,3 @@ ethnic:
description: Feel the shapes of our origins
image_url: pattern01.png
price: 0.99
-
Please sign in to comment.
Something went wrong with that request. Please try again.