Browse files

Added Site specific templates and assets as a submodule-ized plugin

  • Loading branch information...
1 parent debd1fd commit ec459e3692774eddf1298cba150e7265c2183c06 @js js committed Mar 25, 2009
Showing with 10 additions and 4 deletions.
  1. +5 −4 .gitignore
  2. +3 −0 .gitmodules
  3. +1 −0 app/controllers/site_controller.rb
  4. +1 −0 vendor/plugins/gitorious_sites
View
9 .gitignore
@@ -5,10 +5,7 @@ public/cache/*
public/images/graphs/*
config/database.yml
config/gitorious.yml
-config/ultrasphinx/development.conf
-config/ultrasphinx/test.conf
-config/ultrasphinx/production.conf
-config/ultrasphinx/staging.conf
+config/ultrasphinx/*.conf
config/broker.yml
db/schema.rb
db/*.sqlite3
@@ -23,3 +20,7 @@ qtorious.todo
tmp/poller.log
tmp/poller.output
public/javascripts/all.js
+#vendor/plugins/*_site
+public/images/sites/*
+public/stylesheets/sites/*
+public/javascripts/sites/*
View
3 .gitmodules
@@ -0,0 +1,3 @@
+[submodule "vendor/plugins/gitorious_sites"]
+ path = vendor/plugins/gitorious_sites
+ url = ../gitorious_sites_plugin.git
View
1 app/controllers/site_controller.rb
@@ -22,6 +22,7 @@ class SiteController < ApplicationController
renders_in_site_specific_context
def index
+ # Render a Site-specific template
if !current_site.subdomain.blank?
@projects = current_site.projects.find(:all, :limit => 10, :order => "id desc")
@teams = Group.all_participating_in_projects(@projects)
1 vendor/plugins/gitorious_sites
@@ -0,0 +1 @@
+Subproject commit dfa5ca1cc5c4b43c895e27d595dace14a16dd03d

0 comments on commit ec459e3

Please sign in to comment.