-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added text overlays to the portfolio pieces
- Loading branch information
Adam Carlile
committed
Mar 2, 2011
1 parent
5aba6d9
commit 0ba4604
Showing
6 changed files
with
78 additions
and
6 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
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 | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,8 @@ def setup_slug | |
end | ||
|
||
def to_param | ||
"#{id}-#{self.to_slug}" | ||
title.to_url | ||
end | ||
|
||
|
||
end |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<li> | ||
<%= link_to image_tag(project.attachments.first.asset.url(:project_thumb)), project_path(project) %> | ||
</li> | ||
<%= raw portfolio_rollover_link(project) %> |
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 | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
<section id="projects-index"> | ||
<ul> | ||
<% collection.each do |project| %> | ||
<%= content_tag(:li, link_to(image_tag(project.attachments.first.asset.url(:project_widethumb)), resource_path(project)), :class => cycle('first', ''))%> | ||
<%= raw portfolio_rollover_link(project, :image_type => :project_widethumb, :cycle_array => ['first', 'second']) %> | ||
<% end %> | ||
</ul> | ||
</section> |