##// END OF EJS Templates
Introduce virtual MenuNodes (#15880)....
Introduce virtual MenuNodes (#15880). They are characterized by having a blank url. they will only be rendered if the user is authorized to see at least one of its children. they render as links which do nothing when clicked. Patch by Jan Schulz-Hofen. git-svn-id: http://svn.redmine.org/redmine/trunk@15501 e93f8b46-1217-0410-a6f0-8f06a7374b81

File last commit:

r9885:6a2ca5e03427
r15119:53710d80fc88
Show More
page_layout.html.erb
41 lines | 1.8 KiB | text/plain | TextLexer
/ app / views / my / page_layout.html.erb
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <div class="contextual">
Jean-Philippe Lang
Removes most of the ajax stuff on my page layout....
r9850 <% if @block_options.present? %>
<%= form_tag({:action => "add_block"}, :id => "block-form") do %>
<%= label_tag('block-select', l(:label_my_page_block)) %>:
<%= select_tag 'block',
content_tag('option') + options_for_select(@block_options),
:id => "block-select" %>
Jean-Philippe Lang
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 <%= link_to l(:button_add), '#', :onclick => '$("#block-form").submit()', :class => 'icon icon-add' %>
Jean-Philippe Lang
Removes most of the ajax stuff on my page layout....
r9850 <% end %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 <% end %>
Jean-Philippe Lang
Fixes block reordering on my page (#2971)....
r3080 <%= link_to l(:button_back), {:action => 'page'}, :class => 'icon icon-cancel' %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
<h2><%=l(:label_my_page)%></h2>
<div id="list-top" class="block-receiver">
Toshi MARUYAMA
replace tabs to spaces at app/views/my/page_layout.html.erb...
r7206 <% @blocks['top'].each do |b|
next unless MyController::BLOCKS.keys.include? b %>
<%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %>
<% end if @blocks['top'] %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
<div id="list-left" class="splitcontentleft block-receiver">
Toshi MARUYAMA
replace tabs to spaces at app/views/my/page_layout.html.erb...
r7206 <% @blocks['left'].each do |b|
next unless MyController::BLOCKS.keys.include? b %>
<%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %>
<% end if @blocks['left'] %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
<div id="list-right" class="splitcontentright block-receiver">
Toshi MARUYAMA
replace tabs to spaces at app/views/my/page_layout.html.erb...
r7206 <% @blocks['right'].each do |b|
next unless MyController::BLOCKS.keys.include? b %>
<%= render :partial => 'block', :locals => {:user => @user, :block_name => b} %>
<% end if @blocks['right'] %>
Jean-Philippe Lang
added svn:eol-style native property on /app files...
r330 </div>
Jean-Philippe Lang
JQuery in, Prototype/Scriptaculous out (#11445)....
r9885 <%= javascript_tag "initMyPageSortable('top', '#{ escape_javascript url_for(:action => "order_blocks", :group => "top") }');" %>
<%= javascript_tag "initMyPageSortable('left', '#{ escape_javascript url_for(:action => "order_blocks", :group => "left") }');" %>
<%= javascript_tag "initMyPageSortable('right', '#{ escape_javascript url_for(:action => "order_blocks", :group => "right") }');" %>
Toshi MARUYAMA
remove trailing white-spaces from app/views/my/page_layout.html.erb...
r7161
Eric Davis
Add the page title when editing /my/page....
r3641 <% html_title(l(:label_my_page)) -%>