Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refinement: added missing heading and titles to pages on Kete
- Loading branch information
Kieran Pilkington
committed
Sep 1, 2008
1 parent
12c4828
commit d6af282
Showing
7 changed files
with
42 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,18 @@ | ||
class ExtendedFieldsController < ApplicationController | ||
# everything else is handled by application.rb | ||
before_filter :login_required, :only => [:list, :index] | ||
before_filter :set_page_title | ||
|
||
permit "site_admin or admin of :site or tech_admin of :site" | ||
|
||
active_scaffold :extended_field do |config| | ||
config.columns = [:label, :description, :xml_element_name, :ftype, :import_synonyms, :example, :multiple] | ||
list.columns.exclude [:updated_at, :created_at, :topic_type_id, :xsi_type] | ||
end | ||
|
||
private | ||
|
||
def set_page_title | ||
@title = 'Extended Fields' | ||
end | ||
end |
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,11 +1,17 @@ | ||
class LicensesController < ApplicationController | ||
|
||
before_filter :login_required | ||
before_filter :set_page_title | ||
permit "site_admin or admin of :site or tech_admin of :site" | ||
|
||
active_scaffold :license do |config| | ||
config.columns = [:name, :description, :url, :image_url, :metadata, :is_available, :is_creative_commons] | ||
list.columns.exclude [:updated_at, :created_at, :metadata, :description, :image_url, :is_available, :is_creative_commons, :users] | ||
end | ||
|
||
private | ||
|
||
def set_page_title | ||
@title = 'Licenses' | ||
end | ||
end |
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