Changeset 1199

Show
Ignore:
Timestamp:
07/03/08 15:07:42 (6 months ago)
Author:
kovit
Message:

fix 'Menu Shortcut journal'

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/app/views/shared/_menu_shortcut.html.erb

    r1197 r1199  
    55    <%- end -%> 
    66 
    7      <% if @user_by_owner %> 
    8      <% if @context_menu.include?(:journals)  %> 
    9         <li><%= link_to _("My Journal Entries"),  journal_url(:id => @user.username)  %></li> 
    10      <% end %> 
     7     <% unless @used_by_owner %> 
     8       <% if @context_menu.include?(:journals)  %> 
     9          <li><%= link_to _("My Journal Entries"),  journal_url(:id => @user.username)  %></li> 
     10       <% end %> 
    1111     <% end %> 
    1212 
     
    6666      <% end %> 
    6767    <% elsif user && @context_menu.include?(:journals) %> 
    68       <li><%= link_to _("My Journal Entries"),  journal_url(:id => @user.username)  %></li> 
    6968      <li><%= link_to _("Add a New Journal Entry"), new_journal_entry_url(:journal_id => @user.username) %></li> 
    7069    <%- end -%>