This repository has been archived by the owner on Aug 15, 2018. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixed a bug with the theme repository, updated themes to all use a un…
…iform js/stylesheet include method (that needs to be beefed up to not be wasteful)
- Loading branch information
Josh Adams
committed
Dec 26, 2008
1 parent
70a9da8
commit dd6e59b
Showing
6 changed files
with
45 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
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,6 @@ | ||
<%= javascript_include_tag :defaults, 'effects', 'builder', 'lightbox', 'niftycube', 'handle_rounded_corners', 'jquery', 'jquery.scrollable.js', 'jquery.cycle.all.pack.js', 'fckeditor/fckeditor', 'jquery.jsgal.js', 'jquery.popeye-0.2.1.js' -%> | ||
<%= javascript_include_tag "jquery.lightbox-0.5.js", "jquery.lightbox.handler.js" %> | ||
<%= javascript_tag "jQuery.noConflict();" -%> | ||
<%= javascript_include_tag 'jqModal', 'jquery.growl.js', 'ansuz/growls', 'jquery.feedreader.js', 'jquery.cycle.all.pack.js' -%> | ||
<!--[if lt IE 7.]><%= javascript_include_tag 'pngfix.js' %><![endif]--> | ||
<%= handle_forum_header %> |
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,8 @@ | ||
<%= stylesheet_link_tag 'yui-reset-fonts' -%> | ||
<%= stylesheet_link_tag 'sprite' -%> | ||
<%= stylesheet_link_tag 'lightbox' -%> | ||
<%= stylesheet_link_tag 'scrollable-view' %> | ||
<%= stylesheet_link_tag 'grid-lists' %> | ||
<%= stylesheet_link_tag 'jquery.lightbox-0.5.css' %> | ||
<%= stylesheet_link_tag 'jquery.popeye.css' %> | ||
<%= stylesheet_link_tag 'galimg' %> |
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
21 changes: 21 additions & 0 deletions
21
vendor/plugins/ansuz_theme_installer/app/models/ansuz/j_adams/ansuz_theme.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,21 @@ | ||
require 'ansuz/j_adams/theme_repository_manager' | ||
|
||
module Ansuz | ||
module JAdams | ||
class AnsuzTheme < ActiveRecord::Base | ||
validates_uniqueness_of :name | ||
|
||
before_save :clean_up_name | ||
after_save :update_theme_repository_xml | ||
# FIXME: The theme installer and repository plugins are intermingled and gross | ||
|
||
def update_theme_repository_xml | ||
Ansuz::JAdams::ThemeRepositoryManager.write_file | ||
end | ||
|
||
def clean_up_name | ||
self.name = self.name.gsub(/ /, '_') | ||
end | ||
end | ||
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