From ae01f3115f0c855e52cdeeb17d628251e60f6e7c Mon Sep 17 00:00:00 2001 From: Faton Selishta Date: Thu, 30 Jun 2011 16:04:13 +0200 Subject: added alaveteli theme --- .../alavetelitheme/lib/views/layout/default.rhtml | 151 +++++++++++++++++++++ 1 file changed, 151 insertions(+) create mode 100644 vendor/plugins/alavetelitheme/lib/views/layout/default.rhtml (limited to 'vendor/plugins/alavetelitheme/lib/views/layout') diff --git a/vendor/plugins/alavetelitheme/lib/views/layout/default.rhtml b/vendor/plugins/alavetelitheme/lib/views/layout/default.rhtml new file mode 100644 index 000000000..ed8ae50aa --- /dev/null +++ b/vendor/plugins/alavetelitheme/lib/views/layout/default.rhtml @@ -0,0 +1,151 @@ + + + + + + <% if @profile_photo_javascript %> + + + + + <% end %> + + + <% if @title %> + <%=@title%> - <%= site_name %> + <% else %> + <%= site_name %> - <%= _('Make and browse Freedom of Information (FOI) requests') %> + <% end %> + + + + + <%= stylesheet_link_tag 'main', :title => "Main", :rel => "stylesheet" %> + + + <%= stylesheet_link_tag 'custom', :title => "Main", :rel => "stylesheet" %> + + <% if @feed_autodetect %> + <% for feed in @feed_autodetect %> + + <% if feed[:has_json] %> + + <% end %> + <% end %> + <% end %> + <% if @has_json %> + + <% end %> + + <% if @no_crawl %> + + <% end %> + +<% # code for popup advert for a campaign etc. +=begin + + + + +=end +%> + + + + +<% # code for popup advert for a campaign etc. +=begin +
+

Close

+ [ message goes here ] +

Close

+
+=end +%> + + + + + +
+ + <% if not (controller.action_name == 'signin' or controller.action_name == 'signup') %> +
+ <% if @user %> + <%= _('Hello, {{username}}!', :username => h(@user.name))%> + (<%= link_to _("Sign out"), signout_url(:r => request.request_uri) %>) + <% else %> + <%= _('Hello!') %> + (<%= link_to _("Sign in or sign up"), signin_url(:r => request.request_uri) %>) + <% end %> +
+ <% end %> +
+ +
+
+ + <% if flash[:notice] %> +
<%= flash[:notice] %>
+ <% end %> + <% if flash[:error] %> +
<%= flash[:error] %>
+ <% end %> + +
" class="controller_<%= controller.controller_name %>"> + <%= yield :layout %> +
+
+
+ + + + <%= render :partial => 'general/before_body_end' %> + + + -- cgit v1.2.3