Commit 949339eb7f5f8392c6c448d31ba59baec1c2c2e5
1 parent
c6761125
Exists in
master
and in
29 other branches
s/and/&&/
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
app/views/content_viewer/view_page.rhtml
@@ -2,7 +2,7 @@ | @@ -2,7 +2,7 @@ | ||
2 | 2 | ||
3 | <% | 3 | <% |
4 | # AddThis Button | 4 | # AddThis Button |
5 | - if block_given? and web2_conf['addthis'] | 5 | + if block_given? && web2_conf['addthis'] |
6 | opts = web2_conf['addthis'] | 6 | opts = web2_conf['addthis'] |
7 | %> | 7 | %> |
8 | <div id="addThis"> | 8 | <div id="addThis"> |
@@ -76,7 +76,7 @@ | @@ -76,7 +76,7 @@ | ||
76 | </div> | 76 | </div> |
77 | <% end %> | 77 | <% end %> |
78 | 78 | ||
79 | -<% if profile.enterprise? and !profile.enabled? and !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %> | 79 | +<% if profile.enterprise? && !profile.enabled? && !profile.blocks.select {|b| b.class == DisabledEnterpriseMessageBlock}.any? %> |
80 | <div id='profile-disabled'> | 80 | <div id='profile-disabled'> |
81 | <%= environment.message_for_disabled_enterprise %> | 81 | <%= environment.message_for_disabled_enterprise %> |
82 | </div> | 82 | </div> |
@@ -96,7 +96,7 @@ | @@ -96,7 +96,7 @@ | ||
96 | </div> | 96 | </div> |
97 | <% end %> | 97 | <% end %> |
98 | 98 | ||
99 | -<% if ! @page.source.nil? and ! @page.source.empty?%> | 99 | +<% if ! @page.source.nil? && ! @page.source.empty?%> |
100 | <div id="article-source"> | 100 | <div id="article-source"> |
101 | <%= _('Source: %s') % link_to(@page.source, @page.source) %> | 101 | <%= _('Source: %s') % link_to(@page.source, @page.source) %> |
102 | </div> | 102 | </div> |