Commit 8e131944a3be1ec6ad042b91d69b7d0b4226260f

Authored by Leandro Santos
1 parent 1a6baee6

adding require-login-popup for actions that must be logged in to work

app/views/blocks/profile_info_actions/_join_leave_community.html.erb
1   -<div class='join-leave-button'>
  1 +<div class='join-leave-button require-login-popup'>
2 2 <% if logged_in? %>
3 3 <% if profile.members.include?(user) %>
4 4 <%= button(:delete, content_tag('span', _('Leave community')), profile.leave_url,
... ...
app/views/layouts/application-ng.html.erb
... ... @@ -78,6 +78,5 @@
78 78 if content.respond_to?(:call) then instance_exec(&content).html_safe else content.html_safe end
79 79 end.join("\n")
80 80 %>
81   - <%= javascript_include_tag 'require_login' %>
82 81 </body>
83 82 </html>
... ...
plugins/require_auth_to_comment/views/require_auth_to_comment_plugin_admin/index.html.erb
1 1 <h1><%= _('Require auth to comment Settings')%></h1>
2 2  
3   -<% form_for(:settings) do |f| %>
  3 +<%= form_for(:settings) do |f| %>
4 4  
5 5 <div class="require-type">
6 6 <strong>
... ...
plugins/vote/public/style.css
1 1 .vote-actions {
2   - position: absolute;
3 2 top: 40px;
4 3 right: 0px;
5 4 }
... ...
plugins/vote/views/vote/_vote.html.erb
... ... @@ -5,7 +5,7 @@ reload_url = url_for(:controller =&gt; &#39;vote_plugin_profile&#39;, :profile =&gt; profile.i
5 5  
6 6 <span id="vote_<%= model %>_<%= target.id %>_<%= vote %>" data-reload_url=<%= reload_url %> class="vote-action action <%= action %>-action">
7 7  
8   - <%= link_to content_tag(:span, count, :class=>'like-action-counter') + content_tag(:span, '', :class=>"action-icon #{action}"), url, :class => "#{active ? 'like-action-active':''} require-login-popup" %>
  8 + <%= link_to content_tag(:span, count, :class=>'like-action-counter') + content_tag(:span, '', :class=>"action-icon #{action}"), url, :class => "#{active ? 'like-action-active':''} #{user ? '':'disabled'} require-login-popup" %>
9 9  
10 10 <% if !voters.blank? %>
11 11 <span class="vote-detail">
... ...
public/javascripts/application.js
... ... @@ -27,6 +27,7 @@
27 27 *= require manage-products.js
28 28 *= require catalog.js
29 29 *= require autogrow.js
  30 +*= require require_login.js
30 31 */
31 32  
32 33 // scope for noosfero stuff
... ...