From ea6b4b2664a2442073d6cf631e4e6dfd0b79cd21 Mon Sep 17 00:00:00 2001 From: Coleman Date: Thu, 24 Jul 2008 03:41:17 -0500 Subject: [PATCH] curvy corners everywhere! --- app/views/albums/_albums.html.erb | 1 + app/views/albums/index.html.erb | 2 +- app/views/albums/show.html.erb | 21 +- app/views/layout/application.html.erb | 50 ++++- app/views/news/index.html.erb | 2 +- app/views/pages/_page.html.erb | 17 +- app/views/pages/index.html.erb | 2 +- app/views/tags/index.html.erb | 2 +- public/javascripts/curvycorners.js | 285 ++++++++++++++++++++++++++ public/stylesheets/application.css | 15 +- public/stylesheets/tuxbliki.css | 17 +- 11 files changed, 379 insertions(+), 35 deletions(-) create mode 100644 public/javascripts/curvycorners.js diff --git a/app/views/albums/_albums.html.erb b/app/views/albums/_albums.html.erb index b0cb14a..7db67b0 100644 --- a/app/views/albums/_albums.html.erb +++ b/app/views/albums/_albums.html.erb @@ -8,6 +8,7 @@
<% if album.album_thumbnail -%><% end -%> + <% if (index + 1) % 3 == 0 or albums.last == album -%>
<% end -%> <% end -%>
diff --git a/app/views/albums/index.html.erb b/app/views/albums/index.html.erb index 9b6821f..de5de77 100644 --- a/app/views/albums/index.html.erb +++ b/app/views/albums/index.html.erb @@ -1,7 +1,7 @@ <% throw_content :for_sidebar do -%> <% if allowed_to?(:create_albums) -%>Create Album Create An Album
<% end -%> <% if allowed_to?(:upload_images) -%> Upload Image
<% end %> -
+

Popular Tags

<%= tag_cloud @tags %>
diff --git a/app/views/albums/show.html.erb b/app/views/albums/show.html.erb index 6d0a80a..1a9a22f 100644 --- a/app/views/albums/show.html.erb +++ b/app/views/albums/show.html.erb @@ -4,18 +4,17 @@ <% if allowed_to?(:delete_albums) -%> Destroy Album
<% end %> <% if allowed_to?(:upload_images) -%> Upload Image
<% end %> - <% unless @album.tags.empty? -%> -
-

Album Tags

- <%= @album.tags.collect { |t| "#{t.name}" }.join(' ') %> -
- <% end -%> - <% ptags = @photos.collect { |p| p.photo_tags.collect { |pt| pt.tag.name } }.flatten.uniq -%> - <% unless ptags.empty? -%> -
-

Tags in Photos

- <%= ptags.collect { |t| "#{t}" }.join(' ') %> + <% if !@album.tags.empty? and !ptags.empty? -%> +
+ <% unless @album.tags.empty? -%> +

Album Tags

+ <%= @album.tags.collect { |t| "#{t.name}" }.join(' ') %> + <% end -%> + <% unless ptags.empty? -%> +

Tags in Photos

+ <%= ptags.collect { |t| "#{t}" }.join(' ') %> + <% end -%>
<% end -%> <% end -%> diff --git a/app/views/layout/application.html.erb b/app/views/layout/application.html.erb index 5a73525..602c8ae 100644 --- a/app/views/layout/application.html.erb +++ b/app/views/layout/application.html.erb @@ -10,6 +10,7 @@ +