Skip to content

Commit

Permalink
Integrated the header into the general appappeal header so much code …
Browse files Browse the repository at this point in the history
…could be deleted. Header content contains what is left of the old community engine header.
  • Loading branch information
dosire committed Sep 17, 2008
1 parent 7b5381a commit cefaac2
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 39 deletions.
7 changes: 5 additions & 2 deletions app/views/layouts/application.html.haml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
-initialize
-@community_engine = true
= render :partial => "shared/header"

#doc2{:class => "yui-t#{@sidebar_left ? 3 : 6}"}
= render :partial => "shared/header"
= render :partial => "shared/header_content"

#bd
= render :partial => "shared/messages"
Expand Down Expand Up @@ -41,5 +42,7 @@

%p
= :community_tagline.l

/ start background-color hack ie6
%div{'style' => "clear:both"}
/ end background-color hack ie6
= render :partial => "shared/footer"
37 changes: 0 additions & 37 deletions app/views/shared/_header.html.haml

This file was deleted.

24 changes: 24 additions & 0 deletions app/views/shared/_header_content.html.haml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#NavBar
%ul
- Category.find(:all).each do |c|
= topnav_tab c.name, {:url => category_path(c), :section => c.name}
= topnav_tab "Forums".l, { :url => forums_path, :section => 'forums' }
= topnav_tab "Popular".l, { :url => popular_path, :section => 'popular' }
= topnav_tab "People".l, { :url => users_path, :section => 'users' }
- if current_user
= topnav_tab "My Profile".l, { :url => user_path(current_user), :section => 'my_profile'}

/ SiteSearch Google
%form{:method=>"get", :action=>"http://www.google.com/custom", :target=>"_top"}
%input{ :type=>"hidden", :name=>"domains", :value=>"#{APP_URL}"}
%label{ :for=>"search", :style=>"display: none"}
= "Search #{AppConfig.community_name}"
%input{ :type=>"text",:name=>"q", :size=>"17", :maxlength=>"255", :id=>"search"}
%input{ :type=>"hidden", :name=>"sitesearch", :value=>"#{APP_URL}", :id=>"ss1"}
%input{ :type=>"hidden", :name=>"client", :value=>"pub-9113954708528841"}
%input{ :type=>"hidden", :name=>"forid", :value=>"1"}
%input{ :type=>"hidden", :name=>"channel", :value=>"1842224655"}
%input{ :type=>"hidden", :name=>"ie", :value=>"ISO-8859-1"}
%input{ :type=>"hidden", :name=>"oe", :value=>"ISO-8859-1"}
%input{ :type=>"hidden", :name=>"cof", :value=>"GALT:#008000;GL:1;DIV:#FFFFFF;VLC:663399;AH:center;BGC:FFFFFF;LBGC:FFFFFF;ALC:0066CC;LC:0066CC;T:000000;GFNT:0000FF;GIMP:0000FF;LH:50;LW:90;S:http://#{APP_URL};FORID:1"}
%input{ :type=>"hidden", :name=>"hl", :value=>"en"}

0 comments on commit cefaac2

Please sign in to comment.