motiro 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +280 -0
- data/README +28 -0
- data/README.en +175 -0
- data/README.pt-br +175 -0
- data/Rakefile +10 -0
- data/app/controllers/account_controller.rb +62 -0
- data/app/controllers/application.rb +72 -0
- data/app/controllers/edition_controller.rb +13 -0
- data/app/controllers/javascript_controller.rb +21 -0
- data/app/controllers/report_controller.rb +79 -0
- data/app/controllers/root_controller.rb +7 -0
- data/app/controllers/wiki_controller.rb +102 -0
- data/app/core/cache_reporter.rb +53 -0
- data/app/core/cache_reporter_fetcher.rb +33 -0
- data/app/core/chief_editor.rb +69 -0
- data/app/core/reporter.rb +105 -0
- data/app/core/reporter_driver.rb +36 -0
- data/app/core/reporter_fetcher.rb +39 -0
- data/app/core/settings.rb +43 -0
- data/app/core/version.rb +1 -0
- data/app/core/wiki_page_not_found.rb +33 -0
- data/app/core/wiki_reporter.rb +83 -0
- data/app/helpers/account_helper.rb +2 -0
- data/app/helpers/application_helper.rb +68 -0
- data/app/helpers/default_page_provider.rb +28 -0
- data/app/helpers/report_helper.rb +2 -0
- data/app/helpers/root_helper.rb +2 -0
- data/app/helpers/wiki_helper.rb +3 -0
- data/app/models/change.rb +96 -0
- data/app/models/diff_table_builder.rb +285 -0
- data/app/models/event.rb +18 -0
- data/app/models/headline.rb +109 -0
- data/app/models/page.rb +114 -0
- data/app/models/page_sweeper.rb +26 -0
- data/app/models/user.rb +85 -0
- data/app/ports/chdir_runner.rb +36 -0
- data/app/ports/reporter_loader.rb +9 -0
- data/app/ports/runner.rb +64 -0
- data/app/reporters/darcs_connection.rb +54 -0
- data/app/reporters/darcs_reporter.rb +104 -0
- data/app/reporters/darcs_settings.rb +9 -0
- data/app/reporters/darcs_temp_repo.rb +40 -0
- data/app/reporters/events_reporter.rb +28 -0
- data/app/reporters/features_reporter.rb +24 -0
- data/app/reporters/subversion_reporter.rb +203 -0
- data/app/reporters/svn_connection.rb +62 -0
- data/app/reporters/svn_settings.rb +40 -0
- data/app/views/account/_authorization.rhtml +54 -0
- data/app/views/account/_availability.rhtml +5 -0
- data/app/views/account/availability.rhtml +1 -0
- data/app/views/account/login.rhtml +22 -0
- data/app/views/account/logout.rhtml +10 -0
- data/app/views/javascript/motiro.rjs +132 -0
- data/app/views/javascript/niftycube.rjs +300 -0
- data/app/views/layouts/_bottom.rhtml +5 -0
- data/app/views/layouts/_header.rhtml +7 -0
- data/app/views/layouts/_top.rhtml +25 -0
- data/app/views/layouts/application.rhtml +3 -0
- data/app/views/layouts/scaffold.rhtml +13 -0
- data/app/views/layouts/wiki_edit.rhtml +26 -0
- data/app/views/report/list.rhtml +32 -0
- data/app/views/report/older.rhtml +26 -0
- data/app/views/report/rss.rxml +29 -0
- data/app/views/report/show.rhtml +20 -0
- data/app/views/root/index.rhtml +33 -0
- data/app/views/wiki/_editbar.rhtml +26 -0
- data/app/views/wiki/_properties_edit.rhtml +5 -0
- data/app/views/wiki/_properties_show.rhtml +5 -0
- data/app/views/wiki/edit.rhtml +56 -0
- data/app/views/wiki/properties_edit.rhtml +1 -0
- data/app/views/wiki/show.rhtml +9 -0
- data/bin/motiro +44 -0
- data/config/boot.rb +19 -0
- data/config/database.yml +14 -0
- data/config/environment.rb +64 -0
- data/config/environments/development.rb +20 -0
- data/config/environments/production.rb +19 -0
- data/config/environments/test.rb +19 -0
- data/config/motiro.yml +43 -0
- data/config/routes.rb +79 -0
- data/db/migrate/005_globalize_migration.rb +11363 -0
- data/db/migrate/006_remove_headline_title.rb +14 -0
- data/db/migrate/007_stretch_rid.rb +11 -0
- data/db/migrate/008_add_page_editors.rb +12 -0
- data/db/migrate/009_add_page_original_author.rb +12 -0
- data/db/migrate/010_remove_empty_string_defaults_from_pages.rb +17 -0
- data/db/migrate/011_add_title_and_kind_to_pages.rb +13 -0
- data/db/migrate/012_page_modification_info.rb +13 -0
- data/db/migrate/013_nullify_initial_page_attributes.rb +21 -0
- data/db/migrate/014_events_are_wiki_pages.rb +13 -0
- data/db/migrate/015_migrate_previous_event_data.rb +23 -0
- data/db/migrate/1_initial_structure.rb +36 -0
- data/db/migrate/2_add_authentication.rb +12 -0
- data/db/migrate/3_drop_articles.rb +26 -0
- data/db/migrate/4_add_page_editing.rb +14 -0
- data/db/motirodb.sqlite.initial +0 -0
- data/db/schema_version +1 -0
- data/db/translation/pt-BR.rb +76 -0
- data/doc/README_FOR_APP +2 -0
- data/installer/rails_installer_defaults.yml +5 -0
- data/lib/import_translations.rb +154 -0
- data/lib/login_system.rb +89 -0
- data/lib/relative_time.rb +48 -0
- data/lib/string_extensions.rb +10 -0
- data/lib/stub_hash.rb +22 -0
- data/lib/tasks/packaging.rake +93 -0
- data/lib/tasks/testing.rake +32 -0
- data/lib/tick_daemon.rb +41 -0
- data/lib/translator.rb +67 -0
- data/lib/wiki_renderer.rb +42 -0
- data/lib/wiki_url_generator.rb +29 -0
- data/log/.keepdir +0 -0
- data/public/404.html +8 -0
- data/public/500.html +8 -0
- data/public/dispatch.cgi +10 -0
- data/public/dispatch.fcgi +24 -0
- data/public/dispatch.rb +10 -0
- data/public/favicon.ico +0 -0
- data/public/images/calendar.png +0 -0
- data/public/images/rss.png +0 -0
- data/public/javascripts/controls.js +750 -0
- data/public/javascripts/dragdrop.js +584 -0
- data/public/javascripts/effects.js +854 -0
- data/public/javascripts/prototype.js +1785 -0
- data/public/robots.txt +1 -0
- data/public/stylesheets/motiro.css +269 -0
- data/public/stylesheets/niftyCorners.css +35 -0
- data/public/stylesheets/scaffold.css +74 -0
- data/script/about +3 -0
- data/script/breakpointer +3 -0
- data/script/console +3 -0
- data/script/destroy +3 -0
- data/script/generate +3 -0
- data/script/performance/benchmarker +3 -0
- data/script/performance/profiler +3 -0
- data/script/plugin +3 -0
- data/script/process/reaper +3 -0
- data/script/process/spawner +3 -0
- data/script/process/spinner +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/script/ticker +29 -0
- data/test/acceptance/account_test.rb +186 -0
- data/test/acceptance/darcs_test.rb +62 -0
- data/test/acceptance/events_test.rb +47 -0
- data/test/acceptance/main_page_test.rb +92 -0
- data/test/acceptance/subversion_test.rb +319 -0
- data/test/acceptance/ts_all_suites.rb +27 -0
- data/test/acceptance/wiki_test.rb +202 -0
- data/test/contract/darcs_test.rb +51 -0
- data/test/contract/remote_darcs_test.rb +61 -0
- data/test/contract/svn_test.rb +53 -0
- data/test/fixtures/changes.yml +25 -0
- data/test/fixtures/headlines.yml +45 -0
- data/test/fixtures/pages.yml +98 -0
- data/test/fixtures/users.yml +31 -0
- data/test/functional/account_controller_test.rb +96 -0
- data/test/functional/report_controller_test.rb +113 -0
- data/test/functional/report_features_test.rb +38 -0
- data/test/functional/report_subversion_test.rb +79 -0
- data/test/functional/root_controller_test.rb +127 -0
- data/test/functional/wiki_controller_test.rb +280 -0
- data/test/lib/acceptance_test_case.rb +43 -0
- data/test/lib/configuration.rb +53 -0
- data/test/lib/darcs_excerpts.rb +181 -0
- data/test/lib/darcs_repo.rb +77 -0
- data/test/lib/live_mode_test.rb +51 -0
- data/test/lib/local_svn.rb +157 -0
- data/test/lib/netutils.rb +42 -0
- data/test/lib/platform_thread.rb +62 -0
- data/test/lib/repoutils.rb +23 -0
- data/test/lib/selenium_extensions.rb +32 -0
- data/test/lib/stubio.rb +37 -0
- data/test/lib/svn_excerpts.rb +288 -0
- data/test/lib/test_configuration.rb +14 -0
- data/test/lib/webserver.rb +71 -0
- data/test/meta/configuration_test.rb +72 -0
- data/test/meta/darcs_repo_test.rb +118 -0
- data/test/meta/local_svn_test.rb +125 -0
- data/test/meta/platform_thread_test.rb +46 -0
- data/test/meta/stubio_test.rb +44 -0
- data/test/mocks/headline.rb +34 -0
- data/test/mocks/svn_reporter.rb +29 -0
- data/test/stubs/svn_settings.rb +19 -0
- data/test/stubs/url_generator.rb +24 -0
- data/test/test_helper.rb +36 -0
- data/test/unit/cache_reporter_fetcher_test.rb +46 -0
- data/test/unit/cache_reporter_test.rb +97 -0
- data/test/unit/caching_test.rb +78 -0
- data/test/unit/change_test.rb +152 -0
- data/test/unit/chdir_runner_test.rb +77 -0
- data/test/unit/chief_editor_test.rb +234 -0
- data/test/unit/darcs_connection_test.rb +109 -0
- data/test/unit/darcs_reporter_test.rb +146 -0
- data/test/unit/darcs_settings_test.rb +37 -0
- data/test/unit/darcs_temp_repo_test.rb +51 -0
- data/test/unit/default_page_provider_test.rb +46 -0
- data/test/unit/diff_table_builder_test.rb +602 -0
- data/test/unit/headline_test.rb +259 -0
- data/test/unit/page_test.rb +145 -0
- data/test/unit/relative_time_test.rb +56 -0
- data/test/unit/reporter_driver_test.rb +85 -0
- data/test/unit/reporter_fetcher_test.rb +31 -0
- data/test/unit/reporter_test.rb +81 -0
- data/test/unit/runner_test.rb +93 -0
- data/test/unit/settings_test.rb +55 -0
- data/test/unit/string_extensions_test.rb +10 -0
- data/test/unit/svn_connection_test.rb +183 -0
- data/test/unit/svn_reporter_interaction_test.rb +38 -0
- data/test/unit/svn_reporter_test.rb +286 -0
- data/test/unit/svn_settings_test.rb +86 -0
- data/test/unit/translator_test.rb +96 -0
- data/test/unit/user_test.rb +125 -0
- data/test/unit/wiki_renderer_test.rb +87 -0
- data/test/unit/wiki_reporter_test.rb +94 -0
- data/test/unit/wiki_url_generator_test.rb +31 -0
- data/vendor/motiro-installer.rb +159 -0
- data/vendor/plugins/globalize/LICENSE +9 -0
- data/vendor/plugins/globalize/README +49 -0
- data/vendor/plugins/globalize/data/country_data.csv +240 -0
- data/vendor/plugins/globalize/data/language_data.csv +188 -0
- data/vendor/plugins/globalize/data/translation_data.csv +3421 -0
- data/vendor/plugins/globalize/generators/globalize/USAGE +10 -0
- data/vendor/plugins/globalize/generators/globalize/globalize_generator.rb +42 -0
- data/vendor/plugins/globalize/generators/globalize/templates/migration.rb.gz +0 -0
- data/vendor/plugins/globalize/generators/globalize/templates/tiny_migration.rb.gz +0 -0
- data/vendor/plugins/globalize/init.rb +30 -0
- data/vendor/plugins/globalize/lib/globalize/localization/core_ext.rb +170 -0
- data/vendor/plugins/globalize/lib/globalize/localization/core_ext_hooks.rb +33 -0
- data/vendor/plugins/globalize/lib/globalize/localization/db_translate.rb +494 -0
- data/vendor/plugins/globalize/lib/globalize/localization/db_view_translator.rb +152 -0
- data/vendor/plugins/globalize/lib/globalize/localization/locale.rb +173 -0
- data/vendor/plugins/globalize/lib/globalize/localization/rfc_3066.rb +40 -0
- data/vendor/plugins/globalize/lib/globalize/models/country.rb +24 -0
- data/vendor/plugins/globalize/lib/globalize/models/currency.rb +188 -0
- data/vendor/plugins/globalize/lib/globalize/models/language.rb +84 -0
- data/vendor/plugins/globalize/lib/globalize/models/model_translation.rb +4 -0
- data/vendor/plugins/globalize/lib/globalize/models/translation.rb +9 -0
- data/vendor/plugins/globalize/lib/globalize/models/view_translation.rb +14 -0
- data/vendor/plugins/globalize/lib/globalize/rails/action_mailer.rb +125 -0
- data/vendor/plugins/globalize/lib/globalize/rails/action_view.rb +79 -0
- data/vendor/plugins/globalize/lib/globalize/rails/active_record.rb +129 -0
- data/vendor/plugins/globalize/lib/globalize/rails/active_record_helper.rb +33 -0
- data/vendor/plugins/globalize/populators/pop_dates.rb +81 -0
- data/vendor/plugins/globalize/populators/pop_migration.rb +18 -0
- data/vendor/plugins/globalize/populators/pop_pluralization.rb +26 -0
- data/vendor/plugins/globalize/populators/pop_seps.rb +32 -0
- data/vendor/plugins/globalize/tasks/data.rake +130 -0
- data/vendor/plugins/globalize/test/action_mailer_test/globalize_mailer/test.en-US.plain.text.rhtml +1 -0
- data/vendor/plugins/globalize/test/action_mailer_test/globalize_mailer/test.en.plain.text.rhtml +1 -0
- data/vendor/plugins/globalize/test/action_mailer_test/globalize_mailer/test.he.plain.text.rhtml +1 -0
- data/vendor/plugins/globalize/test/action_mailer_test/globalize_mailer/test.plain.text.rhtml +1 -0
- data/vendor/plugins/globalize/test/action_mailer_test.rb +54 -0
- data/vendor/plugins/globalize/test/config/database.yml.default +16 -0
- data/vendor/plugins/globalize/test/config/database.yml.example +22 -0
- data/vendor/plugins/globalize/test/core_ext_test.rb +61 -0
- data/vendor/plugins/globalize/test/currency_test.rb +141 -0
- data/vendor/plugins/globalize/test/date_helper_test.rb +634 -0
- data/vendor/plugins/globalize/test/db/schema.rb +90 -0
- data/vendor/plugins/globalize/test/db_translation_test.rb +374 -0
- data/vendor/plugins/globalize/test/fixtures/globalize_categories.yml +7 -0
- data/vendor/plugins/globalize/test/fixtures/globalize_categories_products.yml +7 -0
- data/vendor/plugins/globalize/test/fixtures/globalize_countries.yml +41 -0
- data/vendor/plugins/globalize/test/fixtures/globalize_languages.yml +64 -0
- data/vendor/plugins/globalize/test/fixtures/globalize_manufacturers.yml +5 -0
- data/vendor/plugins/globalize/test/fixtures/globalize_products.yml +29 -0
- data/vendor/plugins/globalize/test/fixtures/globalize_simples.yml +5 -0
- data/vendor/plugins/globalize/test/fixtures/globalize_translations.yml +354 -0
- data/vendor/plugins/globalize/test/locale_test.rb +27 -0
- data/vendor/plugins/globalize/test/mime_responds_test.rb +358 -0
- data/vendor/plugins/globalize/test/model_test.rb +17 -0
- data/vendor/plugins/globalize/test/standard_data_test_helper.rb +33 -0
- data/vendor/plugins/globalize/test/test_helper.rb +19 -0
- data/vendor/plugins/globalize/test/test_standard_data.rb +54 -0
- data/vendor/plugins/globalize/test/validation_test.rb +29 -0
- data/vendor/plugins/globalize/test/view_picking_test.rb +49 -0
- data/vendor/plugins/globalize/test/view_translation_test.rb +237 -0
- data/vendor/plugins/globalize/test/views/layouts/standard.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/all_types_with_layout.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/all_types_with_layout.rjs +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.en.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.en.rjs +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.en.rxml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.fr.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.fr.rjs +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.fr.rxml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.rjs +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults.rxml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.en.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.en.rjs +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.en.rxml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.fr.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.fr.rjs +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.fr.rxml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.rjs +1 -0
- data/vendor/plugins/globalize/test/views/respond_to/using_defaults_with_type_list.rxml +1 -0
- data/vendor/plugins/globalize/test/views/test.he-IL.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/test.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/test2.he.rhtml +1 -0
- data/vendor/plugins/globalize/test/views/test2.rhtml +1 -0
- data/vendor/plugins/test_xml/MIT-LICENSE +20 -0
- data/vendor/plugins/test_xml/README +20 -0
- data/vendor/plugins/test_xml/Rakefile +22 -0
- data/vendor/plugins/test_xml/init.rb +7 -0
- data/vendor/plugins/test_xml/lib/xml_assertions.rb +22 -0
- data/vendor/plugins/test_xml/test/test_xml_test.rb +40 -0
- metadata +505 -0
@@ -0,0 +1,300 @@
|
|
1
|
+
page << <<JS
|
2
|
+
/* Nifty Corners Cube - rounded corners with CSS and Javascript
|
3
|
+
Copyright 2006 Alessandro Fulciniti (a.fulciniti@html.it)
|
4
|
+
|
5
|
+
This program is free software; you can redistribute it and/or modify
|
6
|
+
it under the terms of the GNU General Public License as published by
|
7
|
+
the Free Software Foundation; either version 2 of the License, or
|
8
|
+
(at your option) any later version.
|
9
|
+
|
10
|
+
This program is distributed in the hope that it will be useful,
|
11
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
13
|
+
GNU General Public License for more details.
|
14
|
+
|
15
|
+
You should have received a copy of the GNU General Public License
|
16
|
+
along with this program; if not, write to the Free Software
|
17
|
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
18
|
+
*/
|
19
|
+
|
20
|
+
var niftyOk=(document.getElementById && document.createElement && Array.prototype.push);
|
21
|
+
var niftyCss=false;
|
22
|
+
|
23
|
+
String.prototype.find=function(what){
|
24
|
+
return(this.indexOf(what)>=0 ? true : false);
|
25
|
+
}
|
26
|
+
|
27
|
+
var oldonload=window.onload;
|
28
|
+
if(typeof(NiftyLoad)!='function') NiftyLoad=function(){};
|
29
|
+
if(typeof(oldonload)=='function')
|
30
|
+
window.onload=function(){oldonload();AddCss();NiftyLoad()};
|
31
|
+
else window.onload=function(){AddCss();NiftyLoad()};
|
32
|
+
|
33
|
+
function AddCss(){
|
34
|
+
niftyCss=true;
|
35
|
+
var l=CreateEl("link");
|
36
|
+
l.setAttribute("type","text/css");
|
37
|
+
l.setAttribute("rel","stylesheet");
|
38
|
+
l.setAttribute("href","#{stylesheet_path 'niftyCorners'}");
|
39
|
+
l.setAttribute("media","screen");
|
40
|
+
document.getElementsByTagName("head")[0].appendChild(l);
|
41
|
+
}
|
42
|
+
|
43
|
+
function Nifty(selector,options){
|
44
|
+
if(niftyOk==false) return;
|
45
|
+
if(niftyCss==false) AddCss();
|
46
|
+
var i,v=selector.split(","),h=0;
|
47
|
+
if(options==null) options="";
|
48
|
+
if(options.find("fixed-height"))
|
49
|
+
h=getElementsBySelector(v[0])[0].offsetHeight;
|
50
|
+
for(i=0;i<v.length;i++)
|
51
|
+
Rounded(v[i],options);
|
52
|
+
if(options.find("height")) SameHeight(selector,h);
|
53
|
+
}
|
54
|
+
|
55
|
+
function Rounded(selector,options){
|
56
|
+
var i,top="",bottom="",v=new Array();
|
57
|
+
if(options!=""){
|
58
|
+
options=options.replace("left","tl bl");
|
59
|
+
options=options.replace("right","tr br");
|
60
|
+
options=options.replace("top","tr tl");
|
61
|
+
options=options.replace("bottom","br bl");
|
62
|
+
options=options.replace("transparent","alias");
|
63
|
+
if(options.find("tl")){
|
64
|
+
top="both";
|
65
|
+
if(!options.find("tr")) top="left";
|
66
|
+
}
|
67
|
+
else if(options.find("tr")) top="right";
|
68
|
+
if(options.find("bl")){
|
69
|
+
bottom="both";
|
70
|
+
if(!options.find("br")) bottom="left";
|
71
|
+
}
|
72
|
+
else if(options.find("br")) bottom="right";
|
73
|
+
}
|
74
|
+
if(top=="" && bottom=="" && !options.find("none")){top="both";bottom="both";}
|
75
|
+
v=getElementsBySelector(selector);
|
76
|
+
for(i=0;i<v.length;i++){
|
77
|
+
FixIE(v[i]);
|
78
|
+
if(top!="") AddTop(v[i],top,options);
|
79
|
+
if(bottom!="") AddBottom(v[i],bottom,options);
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
function AddTop(el,side,options){
|
84
|
+
var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;
|
85
|
+
d.style.marginLeft="-"+getPadding(el,"Left")+"px";
|
86
|
+
d.style.marginRight="-"+getPadding(el,"Right")+"px";
|
87
|
+
if(options.find("alias") || (color=getBk(el))=="transparent"){
|
88
|
+
color="transparent";bk="transparent"; border=getParentBk(el);btype="t";
|
89
|
+
}
|
90
|
+
else{
|
91
|
+
bk=getParentBk(el); border=Mix(color,bk);
|
92
|
+
}
|
93
|
+
d.style.background=bk;
|
94
|
+
d.className="niftycorners";
|
95
|
+
p=getPadding(el,"Top");
|
96
|
+
if(options.find("small")){
|
97
|
+
d.style.marginBottom=(p-2)+"px";
|
98
|
+
btype+="s"; lim=2;
|
99
|
+
}
|
100
|
+
else if(options.find("big")){
|
101
|
+
d.style.marginBottom=(p-10)+"px";
|
102
|
+
btype+="b"; lim=8;
|
103
|
+
}
|
104
|
+
else d.style.marginBottom=(p-5)+"px";
|
105
|
+
for(i=1;i<=lim;i++)
|
106
|
+
d.appendChild(CreateStrip(i,side,color,border,btype));
|
107
|
+
el.style.paddingTop="0";
|
108
|
+
el.insertBefore(d,el.firstChild);
|
109
|
+
}
|
110
|
+
|
111
|
+
function AddBottom(el,side,options){
|
112
|
+
var d=CreateEl("b"),lim=4,border="",p,i,btype="r",bk,color;
|
113
|
+
d.style.marginLeft="-"+getPadding(el,"Left")+"px";
|
114
|
+
d.style.marginRight="-"+getPadding(el,"Right")+"px";
|
115
|
+
if(options.find("alias") || (color=getBk(el))=="transparent"){
|
116
|
+
color="transparent";bk="transparent"; border=getParentBk(el);btype="t";
|
117
|
+
}
|
118
|
+
else{
|
119
|
+
bk=getParentBk(el); border=Mix(color,bk);
|
120
|
+
}
|
121
|
+
d.style.background=bk;
|
122
|
+
d.className="niftycorners";
|
123
|
+
p=getPadding(el,"Bottom");
|
124
|
+
if(options.find("small")){
|
125
|
+
d.style.marginTop=(p-2)+"px";
|
126
|
+
btype+="s"; lim=2;
|
127
|
+
}
|
128
|
+
else if(options.find("big")){
|
129
|
+
d.style.marginTop=(p-10)+"px";
|
130
|
+
btype+="b"; lim=8;
|
131
|
+
}
|
132
|
+
else d.style.marginTop=(p-5)+"px";
|
133
|
+
for(i=lim;i>0;i--)
|
134
|
+
d.appendChild(CreateStrip(i,side,color,border,btype));
|
135
|
+
el.style.paddingBottom=0;
|
136
|
+
el.appendChild(d);
|
137
|
+
}
|
138
|
+
|
139
|
+
function CreateStrip(index,side,color,border,btype){
|
140
|
+
var x=CreateEl("b");
|
141
|
+
x.className=btype+index;
|
142
|
+
x.style.backgroundColor=color;
|
143
|
+
x.style.borderColor=border;
|
144
|
+
if(side=="left"){
|
145
|
+
x.style.borderRightWidth="0";
|
146
|
+
x.style.marginRight="0";
|
147
|
+
}
|
148
|
+
else if(side=="right"){
|
149
|
+
x.style.borderLeftWidth="0";
|
150
|
+
x.style.marginLeft="0";
|
151
|
+
}
|
152
|
+
return(x);
|
153
|
+
}
|
154
|
+
|
155
|
+
function CreateEl(x){
|
156
|
+
return(document.createElement(x));
|
157
|
+
}
|
158
|
+
|
159
|
+
function FixIE(el){
|
160
|
+
if(el.currentStyle!=null && el.currentStyle.hasLayout!=null && el.currentStyle.hasLayout==false)
|
161
|
+
el.style.display="inline-block";
|
162
|
+
}
|
163
|
+
|
164
|
+
function SameHeight(selector,maxh){
|
165
|
+
var i,v=selector.split(","),t,j,els=[],gap;
|
166
|
+
for(i=0;i<v.length;i++){
|
167
|
+
t=getElementsBySelector(v[i]);
|
168
|
+
els=els.concat(t);
|
169
|
+
}
|
170
|
+
for(i=0;i<els.length;i++){
|
171
|
+
if(els[i].offsetHeight>maxh) maxh=els[i].offsetHeight;
|
172
|
+
els[i].style.height="auto";
|
173
|
+
}
|
174
|
+
for(i=0;i<els.length;i++){
|
175
|
+
gap=maxh-els[i].offsetHeight;
|
176
|
+
if(gap>0){
|
177
|
+
t=CreateEl("b");t.className="niftyfill";t.style.height=gap+"px";
|
178
|
+
nc=els[i].lastChild;
|
179
|
+
if(nc.className=="niftycorners")
|
180
|
+
els[i].insertBefore(t,nc);
|
181
|
+
else els[i].appendChild(t);
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
|
186
|
+
function getElementsBySelector(selector){
|
187
|
+
var i,j,selid="",selclass="",tag=selector,tag2="",v2,k,f,a,s=[],objlist=[],c;
|
188
|
+
if(selector.find("#")){ //id selector like "tag#id"
|
189
|
+
if(selector.find(" ")){ //descendant selector like "tag#id tag"
|
190
|
+
s=selector.split(" ");
|
191
|
+
var fs=s[0].split("#");
|
192
|
+
if(fs.length==1) return(objlist);
|
193
|
+
f=document.getElementById(fs[1]);
|
194
|
+
if(f){
|
195
|
+
v=f.getElementsByTagName(s[1]);
|
196
|
+
for(i=0;i<v.length;i++) objlist.push(v[i]);
|
197
|
+
}
|
198
|
+
return(objlist);
|
199
|
+
}
|
200
|
+
else{
|
201
|
+
s=selector.split("#");
|
202
|
+
tag=s[0];
|
203
|
+
selid=s[1];
|
204
|
+
if(selid!=""){
|
205
|
+
f=document.getElementById(selid);
|
206
|
+
if(f) objlist.push(f);
|
207
|
+
return(objlist);
|
208
|
+
}
|
209
|
+
}
|
210
|
+
}
|
211
|
+
if(selector.find(".")){ //class selector like "tag.class"
|
212
|
+
s=selector.split(".");
|
213
|
+
tag=s[0];
|
214
|
+
selclass=s[1];
|
215
|
+
if(selclass.find(" ")){ //descendant selector like tag1.classname tag2
|
216
|
+
s=selclass.split(" ");
|
217
|
+
selclass=s[0];
|
218
|
+
tag2=s[1];
|
219
|
+
}
|
220
|
+
}
|
221
|
+
var v=document.getElementsByTagName(tag); // tag selector like "tag"
|
222
|
+
if(selclass==""){
|
223
|
+
for(i=0;i<v.length;i++) objlist.push(v[i]);
|
224
|
+
return(objlist);
|
225
|
+
}
|
226
|
+
for(i=0;i<v.length;i++){
|
227
|
+
c=v[i].className.split(" ");
|
228
|
+
for(j=0;j<c.length;j++){
|
229
|
+
if(c[j]==selclass){
|
230
|
+
if(tag2=="") objlist.push(v[i]);
|
231
|
+
else{
|
232
|
+
v2=v[i].getElementsByTagName(tag2);
|
233
|
+
for(k=0;k<v2.length;k++) objlist.push(v2[k]);
|
234
|
+
}
|
235
|
+
}
|
236
|
+
}
|
237
|
+
}
|
238
|
+
return(objlist);
|
239
|
+
}
|
240
|
+
|
241
|
+
function getParentBk(x){
|
242
|
+
var el=x.parentNode,c;
|
243
|
+
while(el.tagName.toUpperCase()!="HTML" && (c=getBk(el))=="transparent")
|
244
|
+
el=el.parentNode;
|
245
|
+
if(c=="transparent") c="#FFFFFF";
|
246
|
+
return(c);
|
247
|
+
}
|
248
|
+
|
249
|
+
function getBk(x){
|
250
|
+
var c=getStyleProp(x,"backgroundColor");
|
251
|
+
if(c==null || c=="transparent" || c.find("rgba(0, 0, 0, 0)"))
|
252
|
+
return("transparent");
|
253
|
+
if(c.find("rgb")) c=rgb2hex(c);
|
254
|
+
return(c);
|
255
|
+
}
|
256
|
+
|
257
|
+
function getPadding(x,side){
|
258
|
+
var p=getStyleProp(x,"padding"+side);
|
259
|
+
if(p==null || !p.find("px")) return(0);
|
260
|
+
return(parseInt(p));
|
261
|
+
}
|
262
|
+
|
263
|
+
function getStyleProp(x,prop){
|
264
|
+
if(x.currentStyle)
|
265
|
+
return(x.currentStyle[prop]);
|
266
|
+
if(document.defaultView.getComputedStyle)
|
267
|
+
return(document.defaultView.getComputedStyle(x,'')[prop]);
|
268
|
+
return(null);
|
269
|
+
}
|
270
|
+
|
271
|
+
function rgb2hex(value){
|
272
|
+
var hex="",v,h,i;
|
273
|
+
var regexp=/([0-9]+)[, ]+([0-9]+)[, ]+([0-9]+)/;
|
274
|
+
var h=regexp.exec(value);
|
275
|
+
for(i=1;i<4;i++){
|
276
|
+
v=parseInt(h[i]).toString(16);
|
277
|
+
if(v.length==1) hex+="0"+v;
|
278
|
+
else hex+=v;
|
279
|
+
}
|
280
|
+
return("#"+hex);
|
281
|
+
}
|
282
|
+
|
283
|
+
function Mix(c1,c2){
|
284
|
+
var i,step1,step2,x,y,r=new Array(3);
|
285
|
+
if(c1.length==4)step1=1;
|
286
|
+
else step1=2;
|
287
|
+
if(c2.length==4) step2=1;
|
288
|
+
else step2=2;
|
289
|
+
for(i=0;i<3;i++){
|
290
|
+
x=parseInt(c1.substr(1+step1*i,step1),16);
|
291
|
+
if(step1==1) x=16*x+x;
|
292
|
+
y=parseInt(c2.substr(1+step2*i,step2),16);
|
293
|
+
if(step2==1) y=16*y+y;
|
294
|
+
r[i]=Math.floor((x*50+y*50)/100);
|
295
|
+
r[i]=r[i].toString(16);
|
296
|
+
if(r[i].length==1) r[i]="0"+r[i];
|
297
|
+
}
|
298
|
+
return("#"+r[0]+r[1]+r[2]);
|
299
|
+
}
|
300
|
+
JS
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
2
|
+
"http://www.w3.org/TR/html4/strict.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
|
6
|
+
<title><%= @title -%></title>
|
7
|
+
<%= stylesheet_link_tag "motiro", :media => "all" %>
|
8
|
+
<%= javascript_include_tag :defaults %>
|
9
|
+
<%= dynjs_include_tag 'motiro' %>
|
10
|
+
<%= dynjs_include_tag 'niftycube' %>
|
11
|
+
<script type="text/javascript">
|
12
|
+
window.onload=function(){
|
13
|
+
Nifty("div.channel-title","top,big");
|
14
|
+
Nifty("div.channel-body-outer","bottom,big");
|
15
|
+
Nifty("div.window","big");
|
16
|
+
}
|
17
|
+
</script>
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<% if flash[:notice] -%>
|
21
|
+
<div id="notice"><%= flash[:notice] %></div>
|
22
|
+
<% end %>
|
23
|
+
<div id="header">
|
24
|
+
<%= render :partial => 'layouts/header' %>
|
25
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<%= render :partial => 'layouts/top' %>
|
2
|
+
<div id="editor" class="window">
|
3
|
+
<div class = "inner">
|
4
|
+
<% form_tag :action => 'save' do %>
|
5
|
+
<%= submit_tag 'Save modifications'.t, :class => 'button',
|
6
|
+
:name => 'btnSave' %>
|
7
|
+
<%= submit_tag 'Discard'.t, :class => 'button',
|
8
|
+
:name => 'btnDiscard' %>
|
9
|
+
<%= text_area @destination[:name],
|
10
|
+
@destination[:attr],
|
11
|
+
:id => 'txaEditor',
|
12
|
+
:rows => '30' %>
|
13
|
+
<%= @content_for_layout %>
|
14
|
+
<% end %>
|
15
|
+
</div>
|
16
|
+
</div>
|
17
|
+
<div class='window'>
|
18
|
+
<div class='inner'>
|
19
|
+
<h2><%= 'Quick reference'.t -%></h2>
|
20
|
+
<p>
|
21
|
+
<b><%= 'Title'.t -%>:</b> <code>= <i><%= 'Title'.t -%></i> =</code><br/>
|
22
|
+
<b><%= 'Link'.t -%>:</b> <code>[<i><%= 'address'.t -%></i> <i><%= 'label'.t -%></i>]</code>
|
23
|
+
</p>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<%= render :partial => 'layouts/bottom' %>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<div class='channel-title'>
|
2
|
+
<%= link_to( image_tag('rss.png', :border => 0, :class => 'rss'),
|
3
|
+
{ :controller => 'report',
|
4
|
+
:action => 'rss',
|
5
|
+
:reporter => @name,
|
6
|
+
:locale => @locale },
|
7
|
+
:class => 'feed' )
|
8
|
+
%>
|
9
|
+
<p><%= h(@reporter.channel_title) %></p>
|
10
|
+
</div>
|
11
|
+
<div class='channel-body-outer'>
|
12
|
+
<div class='inner'>
|
13
|
+
<% buttons = @reporter.buttons
|
14
|
+
if ! buttons.empty? then %>
|
15
|
+
<div class='toolbar channel_toolbar'>
|
16
|
+
<%= buttons.map { |b| instance_eval(b) }. join(' | ') -%>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
19
|
+
<% @headlines.each do |headline|%>
|
20
|
+
<p>
|
21
|
+
<%= link_to( h(headline.title(Translator.for(@locale))),
|
22
|
+
@reporter.params_for(headline.rid) )%>
|
23
|
+
<br/>
|
24
|
+
<font size="-1">
|
25
|
+
<i><%= h(headline.author) %></i>
|
26
|
+
(<%= headline.happened_at.relative_to_now %>)
|
27
|
+
</font>
|
28
|
+
</p>
|
29
|
+
<hr/>
|
30
|
+
<% end %>
|
31
|
+
</div>
|
32
|
+
</div>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<% @title = @reporter.channel_title %>
|
2
|
+
<% pagetext(@title) do %>
|
3
|
+
<table class="oldernews">
|
4
|
+
<thead>
|
5
|
+
<tr>
|
6
|
+
<th class="date"><%= 'Date'.t -%></th>
|
7
|
+
<th class="relative"/>
|
8
|
+
<th><%= 'Author'.t -%></th>
|
9
|
+
<th><%= 'Title'.t -%></th>
|
10
|
+
</tr>
|
11
|
+
</thead>
|
12
|
+
<tbody>
|
13
|
+
<% i = 0 %>
|
14
|
+
<% @headlines.each do |headline| %>
|
15
|
+
<% i += 1 %>
|
16
|
+
<tr class="<%= i % 2 == 0 ? 'odd' : 'even' -%>">
|
17
|
+
<td class="date"><%= headline.happened_at-%></td>
|
18
|
+
<td class="relative"><%= headline.happened_at.relative_to_now %></td>
|
19
|
+
<td><%= headline.author %></td>
|
20
|
+
<td><%= link_to( h(headline.title(Translator.for(@locale))),
|
21
|
+
@reporter.params_for(headline.rid) )%></td>
|
22
|
+
</tr>
|
23
|
+
<% end %>
|
24
|
+
</tbody>
|
25
|
+
</table>
|
26
|
+
<% end %>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
xml.instruct! :xml, :version=>"1.0", :encoding=>"UTF-8"
|
2
|
+
|
3
|
+
xml.rss 'version' => '2.0',
|
4
|
+
'xmlns:dc' => 'http://purl.org/dc/elements/1.1/' do
|
5
|
+
xml.channel do
|
6
|
+
xml.title "Motiro - Subversion"
|
7
|
+
xml.description
|
8
|
+
xml.link server_url_for(:controller => 'root', :action => 'index')
|
9
|
+
xml.language 'en'
|
10
|
+
xml.generator 'Motiro'
|
11
|
+
xml.pubDate @headlines.first.happened_at.to_s(:rfc822)
|
12
|
+
xml.ttl '60'
|
13
|
+
@headlines.each do |headline|
|
14
|
+
xml.item do
|
15
|
+
permalink = server_url_for(@reporter.params_for(headline.rid))
|
16
|
+
|
17
|
+
xml.title h(headline.title(Translator.for(@locale)))
|
18
|
+
xml.link permalink
|
19
|
+
xml.description headline.description(Translator.for(@locale)).medialize
|
20
|
+
xml.pubDate h(headline.happened_at.to_s(:rfc822))
|
21
|
+
xml.dc :creator, h(headline.author)
|
22
|
+
xml.guid(permalink + '.' +
|
23
|
+
headline.happened_at.strftime('%Y%m%d%H%M%S'),
|
24
|
+
:isPermaLink => 'false')
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<% @title = "#{'Revision details'.t} - #{@headline.title(Translator.for(@locale))} (Motiro)" %>
|
2
|
+
<% cache(:action => 'show', :suffix => 'summary', :locale => @locale) do %>
|
3
|
+
<% pagetext('Revision %s' / truncate(@revision_id)) do %>
|
4
|
+
<%= @renderer.render_html(@headline.description(Translator.for(@locale))) %>
|
5
|
+
<div id="summary">
|
6
|
+
<% @headline.changes.each do |change| %>
|
7
|
+
<%= change.render_summary -%>
|
8
|
+
<br/>
|
9
|
+
<% end %>
|
10
|
+
</div>
|
11
|
+
<% end %>
|
12
|
+
<% end %>
|
13
|
+
<% cache(:action => 'show', :suffix => 'changes', :locale => @locale) do %>
|
14
|
+
<div id="changes">
|
15
|
+
<% @headline.changes.each do |change| %>
|
16
|
+
<%= change.render_diff %>
|
17
|
+
<% end %>
|
18
|
+
</div>
|
19
|
+
<% end %>
|
20
|
+
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<% @title = "Motiro: #{'Welcome'.t}" %>
|
2
|
+
<div id="rightside">
|
3
|
+
<% ReporterFetcher.new.active_reporters.each do |reporter| %>
|
4
|
+
<div class="channel" id="<%= reporter.name -%>">
|
5
|
+
<%= render_component(:controller => 'report',
|
6
|
+
:action => 'list',
|
7
|
+
:params => { :reporter => reporter.name,
|
8
|
+
:locale => @locale }) %>
|
9
|
+
</div>
|
10
|
+
<% end %>
|
11
|
+
<div class="channel" id="nextrelease">
|
12
|
+
<div class='channel-title'>
|
13
|
+
<p><%= 'Planned features'.t -%></p>
|
14
|
+
</div>
|
15
|
+
<div class='channel-body-outer'>
|
16
|
+
<div class='inner'>
|
17
|
+
<%= render_component(:controller => 'wiki',
|
18
|
+
:action => 'show',
|
19
|
+
:params => { :page_name => 'NextRelease',
|
20
|
+
:context => 'partial',
|
21
|
+
:locale => @locale }) %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<div id="mainpage" class="pagetext">
|
27
|
+
<%= render_component(:controller => 'wiki',
|
28
|
+
:action => 'show',
|
29
|
+
:params => { :page_name => 'MainPage',
|
30
|
+
:context => 'partial',
|
31
|
+
:locale => @locale }) %>
|
32
|
+
</div>
|
33
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<div class='toolbar editbar'>
|
2
|
+
<% unless @page.last_editor.nil? || @page.modified_at.nil? %>
|
3
|
+
<p>
|
4
|
+
<i><%= 'Last update by %s at %s' / @page.last_editor.login /
|
5
|
+
@page.modified_at.to_s(:rfc822) -%></i>
|
6
|
+
</p>
|
7
|
+
<% end %>
|
8
|
+
<% if current_user.nil? then %>
|
9
|
+
<span class='disabled'>
|
10
|
+
<%= 'Edit'.t -%> <%= '(requires authentication)'.t -%>
|
11
|
+
</span>
|
12
|
+
<% elsif !current_user.can_edit?(@page) then
|
13
|
+
klass = if flash[:not_authorized] then 'marked' else 'none' end
|
14
|
+
%>
|
15
|
+
<span class='disabled'>
|
16
|
+
<%= 'Edit'.t -%> <%= content_tag('span',
|
17
|
+
'(not authorized)'.t,
|
18
|
+
:class => klass) -%>
|
19
|
+
</span>
|
20
|
+
<% else %>
|
21
|
+
<%= link_to( 'Edit'.t,
|
22
|
+
{ :controller => 'wiki',
|
23
|
+
:action => 'edit',
|
24
|
+
:page_name => @page.name } )%>
|
25
|
+
<% end %>
|
26
|
+
</div>
|
@@ -0,0 +1,56 @@
|
|
1
|
+
<% form_tag :action => 'save' do %>
|
2
|
+
<div id="editor" class="window">
|
3
|
+
<div class = "inner">
|
4
|
+
<%= hidden_field_tag('page_name', params[:page_name]) if params[:page_name] %>
|
5
|
+
<%= text_field 'page', 'title', :id => 'txtTitle' %>
|
6
|
+
<%= text_area 'page', 'text', :id => 'txaEditor', :rows => '30' %>
|
7
|
+
<%= submit_tag 'Save modifications'.t, :class => 'button',
|
8
|
+
:name => 'btnSave',
|
9
|
+
:id => 'btnSave' %>
|
10
|
+
<%= submit_tag 'Discard'.t, :class => 'button',
|
11
|
+
:name => 'btnDiscard',
|
12
|
+
:id => 'btnDiscard' %>
|
13
|
+
</div>
|
14
|
+
</div>
|
15
|
+
<div id="page_properties" class="window">
|
16
|
+
<div class="inner">
|
17
|
+
<div id="loading">Loading...</div>
|
18
|
+
<h2><%= 'Page properties'.t -%></h2>
|
19
|
+
<p>
|
20
|
+
<%= 'This page is a'.t -%>
|
21
|
+
<%= select('page', 'kind', [['common wiki page'.t, 'common'],
|
22
|
+
['feature suggestion'.t, 'feature'],
|
23
|
+
['event description'.t, 'event']],
|
24
|
+
{},
|
25
|
+
:id => 'cmbType') %>
|
26
|
+
</p>
|
27
|
+
<div id="extra_properties">
|
28
|
+
<%= render :partial => 'properties_edit' -%>
|
29
|
+
</div>
|
30
|
+
<% if current_user.can_change_editors?(@page) %>
|
31
|
+
<p>
|
32
|
+
<label for='txtAuthorized'>
|
33
|
+
<%= 'Who should be able to edit this page?'.t %>
|
34
|
+
</label>
|
35
|
+
<%= text_field('page', 'editors',
|
36
|
+
:id => 'txtAuthorized', :class => 'text') %><br />
|
37
|
+
<%= '(Usernames separated by spaces. Blank for everyone)'.t -%>
|
38
|
+
</p>
|
39
|
+
<% end %>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
<div id='wiki_reference' class='window'>
|
43
|
+
<div class='inner'>
|
44
|
+
<h2><%= 'Quick reference'.t -%></h2>
|
45
|
+
<p>
|
46
|
+
<b><%= 'Title'.t -%>:</b> <code>= <i><%= 'Title'.t -%></i> =</code><br/>
|
47
|
+
<b><%= 'Link'.t -%>:</b> <code>[<i><%= 'address'.t -%></i> <i><%= 'label'.t -%></i>]</code>
|
48
|
+
</p>
|
49
|
+
</div>
|
50
|
+
</div>
|
51
|
+
<% end %>
|
52
|
+
<%= observe_field('cmbType', :url => { :action => 'properties_edit' },
|
53
|
+
:with => 'kind',
|
54
|
+
:update => 'extra_properties',
|
55
|
+
:loading => "extraPropertiesLoading()",
|
56
|
+
:loaded => "extraPropertiesLoaded()") %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= render :partial => 'properties_edit' -%>
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<% pagetext(@page.title) do %>
|
2
|
+
<% cache(:controller=> 'wiki', :action => 'show',
|
3
|
+
:page => @page.name, :locale_suffix => @locale) do
|
4
|
+
%>
|
5
|
+
<%= render :partial => 'properties_show' %>
|
6
|
+
<%= @renderer.render_html(@page.text) %>
|
7
|
+
<% end %>
|
8
|
+
<%= render :partial => 'editbar' %>
|
9
|
+
<% end %>
|