20 Commits

Author SHA1 Message Date
fonfon
a82a83576f use djangos named URLs and url-reverse instead of manually constructing urls 2014-07-10 03:44:52 +00:00
fonfon
32872cea12 fixed broken links in main/sidemenu when using server_dir '/' 2014-07-09 03:15:39 +00:00
fonfon
d4d6948eb9 when running plinth with default server_dir '/' some static files and redirects were wrong -- fixed that; 2014-07-09 00:58:20 +00:00
Sunil Mohan Adapa
ae02192009 Remove unused filedict module 2014-06-28 13:23:32 +02:00
Sunil Mohan Adapa
d9bebe67f5 Remove unused misc utility methods 2014-06-23 00:07:00 +02:00
Sunil Mohan Adapa
db3b0ab9e6 Remove unused template rendering wrapper 2014-06-12 23:34:00 +05:30
Sunil Mohan Adapa
a958798769 Remove unused Message utility class 2014-06-06 17:56:35 +05:30
Sunil Mohan Adapa
994199f096 Cleanup menu generation using templates 2014-05-13 01:00:38 +05:30
Sunil Mohan Adapa
218fc37e8f Remove erroneous onload javascript
If a page needs to run javascript on load, it is easy to do so by attaching 
onload handlers or by using corresponing jQuery utilities. There is no need
to mess with templating.
2014-05-12 23:51:41 +05:30
Sunil Mohan Adapa
8e8ac77661 Convert pagekite introduction page to templates 2014-05-05 23:10:39 +05:30
Sunil Mohan Adapa
4b44741c68 Remove unnecessary layer of abstraction over template rendering 2014-05-05 00:08:58 +05:30
Sunil Mohan Adapa
9239d2c627 Migrate from Cheetah to Django template system
Compiled templates are an unnecessary pain in maintance and
packaging. If each module is to bring its own templates, compiling
them in the build process becomes unnecessarily more complex. The
current state of template mess can somewhat be attributed to this.

Cheetah only partially supports dynamic templates. It does not support
inheritence of dynamic templates. From its documentation: "There is no
support for extending from a class that is not imported; e.g., from a
template dynamically created from a string. Since the most practical
way to get a parent template into a module is to precompile it, all
parent templates essentially have to be precompiled."
2014-05-04 16:01:17 +05:30
Sunil Mohan Adapa
2079b3639a Dont use exec for importing templates 2014-04-05 14:52:51 +09:00
Nick Daly
2af1617f51 Set the template's basehref from cfg.server_dir.
Previously, the cfg.base_href variable was never set (it's not even in
the sample.config file!).  Now, Plinth uses the specified root
directory (from the *--server_dir* argument) in each URL reference.
2013-10-31 19:36:35 -05:00
Nick Daly
f55c7a48ea Merged with James's upstream.
Hope I did it right.  If I screwed up, withsqlite is borked.
2013-04-23 17:49:22 -05:00
Sean O'Brien
5685d3f387 fixes to boostrap, new icons, mobile view works 2012-03-12 14:39:32 -04:00
James Vasile
1f72739447 base href defaults to blank 2012-02-19 15:07:15 -05:00
James Vasile
02baab57a0 mkdir 2012-02-19 15:07:14 -05:00
James Vasile
00a310a209 added default title of '' 2011-03-09 11:28:31 -05:00
James Vasile
35071d7212 ... 2011-02-22 13:32:45 -05:00