Welcome Guest Login Register Member List
ExpressionEngine Forums
Advanced Search
Username: Password:
Remember Me? forgot password?
You are here: Forum Home  >  Usage  >  Tips and Tricks  >  Thread
   
 
Alternative home page for mobile version of tracks
 
emkay
Posted: 22 April 2008 11:41 AM   [ Ignore ]  
Newbie
Rank
Total Posts:  4
Joined  2008-04-22

I’ve made a hack of the home page of the mobile version of tracks so that it more reflects the home page of the full web version.
When you go to the mobile home page my version lists the contexts and the number of actions in each, you can then navigate into those for the details.  I prefer this to the current mobile “flat” view of all the actions.

For those that want to try it all you need to do is modify your _mobile_actions.rhtml:
1) Put this condition before the <ul>

<% if @context || @project -%> 

2) Put this after the <% end -%> of the formatted_pagination part

<% else -%>
    <
ul>

    <% for 
c in @contexts -%>
        <% if 
not c.hidden? -%>
            <
li><%= link_to c.name, formatted_context_todos_path(c, :m) %> (<%= Todo.count(
          :
all, 
          :
conditions => ['todos.user_id = ? and todos.state = ? and contexts.id = ? ', current_user.id, 'active', c.id], 
          :include => 
[ :project, :context ])
      %>)</
li>
        <% 
end -%>
    <% 
end -%>
    </
ul>
  <% 
end -%> 

 

Martin

Profile
 
Reinier Balt
Posted: 24 April 2008 08:07 AM   [ Ignore ]   [ # 1 ]  
Sr. Member
RankRankRankRank
Total Posts:  580
Joined  2006-10-05

Nice work. I’ve committed similar changes to trunk recently to change the mobile interface to mimic the non-mobile interface. There is a similar home page in it as well. It will be included in the next release (or you can try out trunk)

Profile
 
   
 
 
‹‹ Deferred actions missing form Upcoming Actions emails      Some of you use tracks to manage teams ? ››

Powered By ExpressionEngine
Template Design By Sonnenvogel.com
Select a theme:

ExpressionEngine Discussion Forum - Version 2.1.2 (20091002)
Script Executed in 0.1188 seconds

Atom Feed
RSS 2.0