diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 65a76fd..aefb8ac 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -126,28 +126,6 @@ module ApplicationHelper link_to text, homepage_path(:profile => doc.profile.identifier , :page => path) end - def shortcut_header_links -# search_link = ( lightbox_link_to content_tag('span', _('Search')), { :controller => 'search', :action => 'popup' }, { :id => 'open_search'} ) -# -# if logged_in? -# [ -# ( link_to_homepage 'Photo'+ current_user.login, -# current_user.login, :id=>"link_go_home" ), -# ( link_to_myprofile( content_tag('span', _('control panel')), {}, nil, { :id => 'link_edit_profile'} ) ), -# ( link_to content_tag('span', _('Admin')), { :controller => 'admin_panel' }, :id => 'link_admin_panel' if current_user.person.is_admin?), -# ( lightbox_link_to content_tag('span', _('Logout')), { :controller => 'account', :action => 'logout_popup'}, :id => 'link_logout'), -# search_link, -# ] -# else -# [ -# ( lightbox_link_to content_tag('span', _('Login')), { :controller => 'account', :action => 'login_popup' }, :id => 'link_login' ), -# search_link, -# ] -# end.join(" ") - end - def link_if_permitted(link, permission = nil, target = nil) if permission.nil? || current_user.person.has_permission?(permission, target) link diff --git a/app/views/content_viewer/_comment_form.rhtml b/app/views/content_viewer/_comment_form.rhtml index fe363c2..3dcb518 100644 --- a/app/views/content_viewer/_comment_form.rhtml +++ b/app/views/content_viewer/_comment_form.rhtml @@ -1,6 +1,15 @@ -

<%= _('Post a comment') %>

+<% + comment_form_id = 'comment_form'+ rand(9999).to_s +%> +
-<% form_tag do %> +

<%= _('Post a comment') %>

+ +<% form_tag( {}, { :id => comment_form_id, :style => 'display:none' } ) do %> <% unless logged_in? %> @@ -14,8 +23,10 @@ <% end %> <%= labelled_form_field(_('Title'), text_field(:comment, :title)) %> - <%= labelled_form_field(_('Enter your comment'), text_area(:comment, :body)) %> + <%= labelled_form_field(_('Enter your comment'), text_area(:comment, :body, :rows => 5)) %> <% button_bar do %> - <%= submit_button('post', _('Post comment')) %> + <%= submit_button('add', _('Post comment')) %> <% end %> <% end %> + +
diff --git a/app/views/layouts/application.rhtml b/app/views/layouts/application.rhtml index 6d4eddc..63ee913 100644 --- a/app/views/layouts/application.rhtml +++ b/app/views/layouts/application.rhtml @@ -13,7 +13,7 @@ stylesheet_import is better then stylesheet_link_tag because the stylesheet must be loaded before the page show. %> - <%= stylesheet_import %w( common help menu button search blocks forms login-box ) %> + <%= stylesheet_import %w( common help menu article button search blocks forms login-box ) %> <%= import_blocks_stylesheets %> <%= # Load the controller's css file if it exists: diff --git a/app/views/shared/user_menu.rhtml b/app/views/shared/user_menu.rhtml index 01d268a..5da01c4 100644 --- a/app/views/shared/user_menu.rhtml +++ b/app/views/shared/user_menu.rhtml @@ -1,38 +1,31 @@
<% if logged_in? %> - <%= - link_to_homepage ''+ current_user.login() +' Icon-Photo'+ - current_user.login, current_user.login, :id=>'link_go_home', :class => 'user_menu_first_link' - %> + +
+ " alt="<%= current_user.login %> Icon-Photo" title="" height="20" border="0"/> + <%= _("%s's Menu") % current_user.login %> +
+