From a6554335c17691cd0f64121820e45f59dd72c875 Mon Sep 17 00:00:00 2001 From: andrew Date: Sun, 3 Feb 2008 21:44:30 +0000 Subject: [PATCH] adding missing file git-svn-id: http://svn.barleysodas.com/barleysodas/trunk@131 0f7b21a7-9e3a-4941-bbeb-ce5c7c368fa7 --- app/views/experiences/show.rhtml | 45 ++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 app/views/experiences/show.rhtml diff --git a/app/views/experiences/show.rhtml b/app/views/experiences/show.rhtml new file mode 100644 index 0000000..9a9624f --- /dev/null +++ b/app/views/experiences/show.rhtml @@ -0,0 +1,45 @@ +<% content_for :stylesheet do -%> +#content li { + height: 23px; + margin-top: 10px; + border-bottom: 2px solid #CBCBCB; +} +<% end -%> + +

<%= @people.title -%>'s Progress

+ +<% if @breweries.empty? -%> +

Epic slacking.

+<% else -%> +<% for brewery in @breweries -%> +

<%= show_brewery_link(brewery) -%>

+ +<% end -%> +<% end -%> + +<% content_for :script do -%> + addLoadEvent(function(){ + var r; +<% for experience in @experiences do -%> + r = new Control.Rating('rating_div_<%= experience.id -%>', + { + min: 1, + max: 10, + rated: true, + value: <%= experience.rating %> + }); +<% end -%> + }); +<% end -%> + +<% content_for :sidebar do -%> + You have tried <%= pluralize(@total_count , 'beer') -%>.
+<% end -%> + +<%= render :partial => 'shared/pagination_links' %> + +<% content_for :auto_discoveries do -%> + <%= auto_discovery_link_tag :rss, { :format => :rss } %> +<% end -%> \ No newline at end of file