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 | 2 | |
3 | 3 | <% |
4 | 4 | # AddThis Button |
5 | - if block_given? and web2_conf['addthis'] | |
5 | + if block_given? && web2_conf['addthis'] | |
6 | 6 | opts = web2_conf['addthis'] |
7 | 7 | %> |
8 | 8 | <div id="addThis"> |
... | ... | @@ -76,7 +76,7 @@ |
76 | 76 | </div> |
77 | 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 | 80 | <div id='profile-disabled'> |
81 | 81 | <%= environment.message_for_disabled_enterprise %> |
82 | 82 | </div> |
... | ... | @@ -96,7 +96,7 @@ |
96 | 96 | </div> |
97 | 97 | <% end %> |
98 | 98 | |
99 | -<% if ! @page.source.nil? and ! @page.source.empty?%> | |
99 | +<% if ! @page.source.nil? && ! @page.source.empty?%> | |
100 | 100 | <div id="article-source"> |
101 | 101 | <%= _('Source: %s') % link_to(@page.source, @page.source) %> |
102 | 102 | </div> | ... | ... |