forked from riseuplabs/crabgrass-old
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'integration_pagination_with_unified_search' of 0xb5.org…
…:digitalgazette into integration_pagination_with_unified_search
- Loading branch information
Showing
9 changed files
with
34 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<ul class="bullet_indent"> | ||
<%- tags.each do |tag| -%> | ||
<li><a href="/<%=@page_type == 'asset' ? 'reports' : 'wiki' %>/search/tag/<%= tag.downcase %>"><%= tag %></a></li> | ||
<li><a href="/search/type/<%= @page_type.to_s %>/tag/<%= tag.downcase %>"><%= tag %></a></li> | ||
<%- end -%> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
mods/digitalgazette/lib/digital_gazette/#pages_controller_extension.rb#
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module DigitalGazette | ||
module PagesControllerExtension | ||
def self.included(base) | ||
base.instance_eval do | ||
skip_before_filter :login_required | ||
before_filter :public_or_login_required, :except => [:search] | ||
end | ||
end | ||
|
||
def public_or_login_required | ||
return true unless @pages | ||
!(@pages.collect {|p| p.public? }.include?(false)) or login_required | ||
end | ||
end | ||
end | ||
xx |
1 change: 1 addition & 0 deletions
1
mods/digitalgazette/lib/digital_gazette/.#pages_controller_extension.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
jrw@sublime.7792:1286441298 |