Skip to content

Commit

Permalink
re-working the pages to look right with the new selectors
Browse files Browse the repository at this point in the history
  • Loading branch information
HamptonMakes committed Dec 16, 2009
1 parent f1f92e4 commit 43a732c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions app/controllers/information.rb
Expand Up @@ -5,6 +5,7 @@ def donate
params[:footmenu] = "false"
render
end

def disable
@title = ""
@path = params[:title] || ""
Expand Down
4 changes: 2 additions & 2 deletions app/views/articles/home.html.haml
Expand Up @@ -2,9 +2,9 @@

- if @main_page
#main_box
- if @main_page["article_of_the_day"]
- if @main_page["featured_article"]
%h2= language_object["featured_article"]
#featured_article= @main_page["article_of_the_day"]
#featured_article= @main_page["featured_article"]

- if @main_page["news_items"]
.today
Expand Down
4 changes: 2 additions & 2 deletions app/views/articles/home.json.haml
@@ -1,9 +1,9 @@
= language_notice if !supported_language?

#main_page
- if @main_page["article_of_the_day"]
- if @main_page["featured_article"]
%h2= language_object["featured_article"]
#featured_article= @main_page["article_of_the_day"]
#featured_article= @main_page["featured_article"]

- if @main_page["news_items"]
.today
Expand Down
2 changes: 1 addition & 1 deletion app/views/layout/application.html.haml
Expand Up @@ -16,7 +16,7 @@
%body
- if (params['searchBar'] || "") != "false"
= partial("layout/search_".force_encoding("UTF-8") + request.device.search_bar) if request.device.search_bar
#content_wrapper{:class => request.action_name}
#content_wrapper{:class => [request.action_name, current_wiki]}
= catch_content :for_layout
#footer
- if params['footmenu'] != "false"
Expand Down
4 changes: 4 additions & 0 deletions config/nginx.site.conf
Expand Up @@ -49,6 +49,10 @@ server {

# doc root
root /srv/mobile/current/public;

location /config {
root /srv/mobile/current/config
}

location / {
# needed to forward user's IP address to rails
Expand Down
2 changes: 1 addition & 1 deletion public/stylesheets/sass/default.sass
Expand Up @@ -96,4 +96,4 @@ span.citation:target, cite:target
.content_block,
.section_anchors,
button.section_heading.hide
display: none
display: none

0 comments on commit 43a732c

Please sign in to comment.