Skip to content

Commit 5ff7606

Browse files
committedFeb 25, 2011
initial commit
0 parents  commit 5ff7606

14 files changed

+99
-0
lines changed
 

‎.gitignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/tmp
2+
/log
3+
/coverage
4+
/sqlitedbs
5+
/cache
6+
/old-cache
7+
.*.swp
8+
*~
9+
*#*#
10+
TAGS

‎MIT-LICENSE

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
Copyright (c) 2011 Seb Bacon
2+
3+
Permission is hereby granted, free of charge, to any person obtaining
4+
a copy of this software and associated documentation files (the
5+
"Software"), to deal in the Software without restriction, including
6+
without limitation the rights to use, copy, modify, merge, publish,
7+
distribute, sublicense, and/or sell copies of the Software, and to
8+
permit persons to whom the Software is furnished to do so, subject to
9+
the following conditions:
10+
11+
The above copyright notice and this permission notice shall be
12+
included in all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

‎README

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Alavetelitheme
2+
==============
3+
4+
This is a "hello world" type theme package for Alaveteli.
5+
6+
The intention is to support simple overlaying of templates and
7+
resources without the need to touch the core Alaveteli software.
8+
9+
Typical usage should be limited to:
10+
11+
* Putting CSS-based customisations in lib/views/general/custom_css.rhtml
12+
13+
* Creating your own versions of non-functional pages (like "about
14+
us", at lib/views/help/about.rhtml -- and/or localised versions at
15+
lib/views/help/about.es.rhtml)
16+
17+
18+
19+
Copyright (c) 2011 Seb Bacon, released under the MIT license

‎Rakefile

Whitespace-only changes.

‎init.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require "alavetelitheme.rb"

‎install.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Install hook code here

‎lib/alavetelitheme.rb

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
class ActionController::Base
2+
before_filter :set_view_paths
3+
4+
def set_view_paths
5+
self.prepend_view_path File.join(File.dirname(__FILE__), "views")
6+
end
7+
end

‎lib/views/general/custom_css.rhtml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
#header #tagline {
3+
color: red;
4+
}
5+
6+
h1 {
7+
color: blue ! important;
8+
}

‎lib/views/help/about.es.rhtml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<% @title = "Sobre" %>
2+
3+
<%= render :partial => 'sidebar' %>
4+
5+
<h1>¡Bonjiorno amis!</h1>
6+
7+
<p>Esta sito tu aidare a faire los requestio</p>
8+

‎lib/views/help/about.rhtml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<% @title = "About" %>
2+
3+
<%= render :partial => 'sidebar' %>
4+
5+
<h1 id="introduction">Introduction to WhatDoTheyKnow <a href="#introduction">#</a> </h1>
6+
7+
<p>This is a custom "about" page</p>
8+
9+

‎tasks/alavetelitheme_tasks.rake

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# desc "Explaining what the task does"
2+
# task :alavetelitheme do
3+
# # Task goes here
4+
# end

‎test/alavetelitheme_test.rb

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
require 'test_helper'
2+
3+
class AlavetelithemeTest < ActiveSupport::TestCase
4+
# Replace this with your real tests.
5+
test "the truth" do
6+
assert true
7+
end
8+
end

‎test/test_helper.rb

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
require 'rubygems'
2+
require 'active_support'
3+
require 'active_support/test_case'

‎uninstall.rb

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Uninstall hook code here

0 commit comments

Comments
 (0)
Please sign in to comment.