From 69befc059d3442f92e732de75585be6e9cf7d510 Mon Sep 17 00:00:00 2001 From: maxwell Date: Thu, 31 Mar 2011 18:32:19 -0700 Subject: [PATCH] ms iz fixed a bit of the mobile site --- app/controllers/people_controller.rb | 2 +- app/views/layouts/application.mobile.haml | 4 +--- app/views/tags/{show.html.haml => show.haml} | 0 3 files changed, 2 insertions(+), 4 deletions(-) rename app/views/tags/{show.html.haml => show.haml} (100%) diff --git a/app/controllers/people_controller.rb b/app/controllers/people_controller.rb index b38de87d1..3eb24a684 100644 --- a/app/controllers/people_controller.rb +++ b/app/controllers/people_controller.rb @@ -10,7 +10,7 @@ class PeopleController < ApplicationController def index @aspect = :search - params[:q] ||= params[:term] + params[:q] ||= params[:term] || '' if (params[:q][0] == 35 || params[:q][0] == '#') && params[:q].length > 1 redirect_to "/tags/#{params[:q].gsub("#", "")}" diff --git a/app/views/layouts/application.mobile.haml b/app/views/layouts/application.mobile.haml index 00e2e1a29..b88b86ff1 100644 --- a/app/views/layouts/application.mobile.haml +++ b/app/views/layouts/application.mobile.haml @@ -94,8 +94,6 @@ = current_user.name %ul{:data => {:role => 'listview', :inset => 'true'}} - %li - = link_to t('profiles.edit.your_profile'), edit_profile_path %li = link_to t('notifications.index.notifications'), notifications_path .ui-li-count @@ -106,7 +104,7 @@ %ul{:data => {:role => 'listview', :inset => 'true'}} %li - = link_to t('application.helper.aspect_badge.all_aspects'), aspects_path + = link_to t('all_aspects'), aspects_path - for aspect in @all_aspects %li = link_to aspect, aspects_path('a_ids[]' => aspect.id) diff --git a/app/views/tags/show.html.haml b/app/views/tags/show.haml similarity index 100% rename from app/views/tags/show.html.haml rename to app/views/tags/show.haml