wontomedia 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/COPYING +661 -0
- data/COPYING.DOCUMENTATION +450 -0
- data/LICENSE +661 -0
- data/README.markdown +56 -0
- data/Rakefile +185 -0
- data/VERSION.yml +4 -0
- data/app/controllers/admin_controller.rb +144 -0
- data/app/controllers/application_controller.rb +29 -0
- data/app/controllers/connections_controller.rb +150 -0
- data/app/controllers/items_controller.rb +365 -0
- data/app/helpers/connections_helper.rb +67 -0
- data/app/helpers/format_helper.rb +154 -0
- data/app/helpers/items_helper.rb +105 -0
- data/app/models/category_item.rb +23 -0
- data/app/models/connection.rb +210 -0
- data/app/models/individual_item.rb +23 -0
- data/app/models/item.rb +86 -0
- data/app/models/property_item.rb +23 -0
- data/app/models/qualified_item.rb +23 -0
- data/app/views/admin/index.html.erb +74 -0
- data/app/views/connections/_index_outbound_links.html.erb +48 -0
- data/app/views/connections/_spo_select_controls.html.erb +151 -0
- data/app/views/connections/edit.html.erb +70 -0
- data/app/views/connections/index.html.erb +84 -0
- data/app/views/connections/new.html.erb +61 -0
- data/app/views/connections/show.html.erb +110 -0
- data/app/views/items/_active_content.html.erb +26 -0
- data/app/views/items/_content_examples.html.erb +55 -0
- data/app/views/items/_core_tasks.html.erb +23 -0
- data/app/views/items/_form_fields.html.erb +69 -0
- data/app/views/items/_list_outbound_links.html.erb +58 -0
- data/app/views/items/_screen_select.html.erb +24 -0
- data/app/views/items/_show_outbound_links.html.erb +70 -0
- data/app/views/items/_topic_list.html.erb +26 -0
- data/app/views/items/_type_select.html.erb +47 -0
- data/app/views/items/edit.html.erb +63 -0
- data/app/views/items/index.html.erb +74 -0
- data/app/views/items/new.html.erb +124 -0
- data/app/views/items/newpop.html.erb +58 -0
- data/app/views/items/show.html.erb +209 -0
- data/app/views/layouts/_amazon_ads.html.erb +55 -0
- data/app/views/layouts/_glossary_help_box.html.erb +43 -0
- data/app/views/layouts/_google_ads.html.erb +40 -0
- data/app/views/layouts/_language_select.html.erb +24 -0
- data/app/views/layouts/_login_controls.html.erb +24 -0
- data/app/views/layouts/_master_help.html.erb +24 -0
- data/app/views/layouts/_navigation_menu.html.erb +39 -0
- data/app/views/layouts/_search_box.html.erb +27 -0
- data/app/views/layouts/_status_msgs.html.erb +25 -0
- data/app/views/layouts/application.html.erb +67 -0
- data/app/views/layouts/base.html.erb +93 -0
- data/app/views/layouts/home.html.erb +67 -0
- data/app/views/layouts/popup.html.erb +23 -0
- data/assets/wontomedia-sample.rb +47 -0
- data/config/asset_packages.yml +44 -0
- data/config/boot.rb +110 -0
- data/config/cucumber.yml +65 -0
- data/config/database-mysql-development.yml +47 -0
- data/config/database-mysql.yml +26 -0
- data/config/environment.rb +94 -0
- data/config/environments/cucumber.rb +29 -0
- data/config/environments/development.rb +26 -0
- data/config/environments/production.rb +33 -0
- data/config/environments/test.rb +31 -0
- data/config/initializers/inflections.rb +19 -0
- data/config/initializers/mime_types.rb +14 -0
- data/config/initializers/new_rails_defaults.rb +26 -0
- data/config/locales/en.yml +14 -0
- data/config/routes.rb +37 -0
- data/db/fixtures/connections.yml +96 -0
- data/db/fixtures/items.yml +277 -0
- data/db/migrate/20090312212805_create_items.rb +31 -0
- data/db/migrate/20090406221320_create_connections.rb +32 -0
- data/db/migrate/20090411014503_add_type_for_item_subclasses.rb +29 -0
- data/db/migrate/20090415142152_rename_item_type.rb +31 -0
- data/db/migrate/20090518022918_rename_object_and_self.rb +33 -0
- data/db/migrate/20090529171442_add_flags_to_items.rb +27 -0
- data/db/migrate/20090529171508_add_flags_to_connections.rb +27 -0
- data/db/migrate/20090605213800_flags_columns_not_null.rb +29 -0
- data/db/migrate/20090605215028_flags_columns_default_zero.rb +29 -0
- data/db/schema.rb +30 -0
- data/default-custom/app/views/items/_home_extern_list.html.erb +32 -0
- data/default-custom/app/views/items/_home_introductory_text.html.erb +70 -0
- data/default-custom/app/views/items/home.html.erb +77 -0
- data/default-custom/public/images/logo.png +0 -0
- data/default-custom/public/images/logo.svg +74 -0
- data/default-custom/public/stylesheets/wm.css +301 -0
- data/doc/README.markdown +44 -0
- data/doc/README_FOR_APP +82 -0
- data/doc/customization.markdown +93 -0
- data/doc/scripts/rake-customize.markdown +83 -0
- data/lib/helpers/connection_helper.rb +41 -0
- data/lib/helpers/item_helper.rb +141 -0
- data/lib/helpers/tripple_navigation.rb +158 -0
- data/lib/tasks/cucumber.rake +83 -0
- data/lib/tasks/customize.rake +70 -0
- data/lib/tasks/db.rake +65 -0
- data/lib/tasks/javascript_testing_tasks.rake +176 -0
- data/public/404.html +50 -0
- data/public/422.html +50 -0
- data/public/500.html +53 -0
- data/public/dispatch.cgi +20 -0
- data/public/dispatch.fcgi +34 -0
- data/public/dispatch.rb +20 -0
- data/public/favicon.ico +0 -0
- data/public/images/blank_error_icon.png +0 -0
- data/public/images/blank_status_icon.png +0 -0
- data/public/images/error_error_icon.png +0 -0
- data/public/images/error_status_icon.png +0 -0
- data/public/images/good_status_icon.png +0 -0
- data/public/images/help_icon.png +0 -0
- data/public/images/twitter_icon.png +0 -0
- data/public/images/warn_error_icon.png +0 -0
- data/public/images/working_status_icon.gif +0 -0
- data/public/javascripts/application.js +56 -0
- data/public/javascripts/controls.js +963 -0
- data/public/javascripts/dragdrop.js +973 -0
- data/public/javascripts/effects.js +1128 -0
- data/public/javascripts/event.simulate.js +64 -0
- data/public/javascripts/fancybox.js +43 -0
- data/public/javascripts/forConnectionsForms.js +218 -0
- data/public/javascripts/forItemsForms.js +511 -0
- data/public/javascripts/itemCreatePopup.js +115 -0
- data/public/javascripts/itemTitleToName.js +119 -0
- data/public/javascripts/jquery.js +4376 -0
- data/public/javascripts/modalbox.js +502 -0
- data/public/javascripts/prototype.js +4320 -0
- data/public/javascripts/reconcileJQueryAndPrototype.js +19 -0
- data/public/robots.txt +7 -0
- data/public/stylesheets/blank.gif +0 -0
- data/public/stylesheets/fancy_close.png +0 -0
- data/public/stylesheets/fancy_loading.png +0 -0
- data/public/stylesheets/fancy_nav_left.png +0 -0
- data/public/stylesheets/fancy_nav_right.png +0 -0
- data/public/stylesheets/fancy_shadow_e.png +0 -0
- data/public/stylesheets/fancy_shadow_n.png +0 -0
- data/public/stylesheets/fancy_shadow_ne.png +0 -0
- data/public/stylesheets/fancy_shadow_nw.png +0 -0
- data/public/stylesheets/fancy_shadow_s.png +0 -0
- data/public/stylesheets/fancy_shadow_se.png +0 -0
- data/public/stylesheets/fancy_shadow_sw.png +0 -0
- data/public/stylesheets/fancy_shadow_w.png +0 -0
- data/public/stylesheets/fancy_title_left.png +0 -0
- data/public/stylesheets/fancy_title_main.png +0 -0
- data/public/stylesheets/fancy_title_over.png +0 -0
- data/public/stylesheets/fancy_title_right.png +0 -0
- data/public/stylesheets/fancybox.css +333 -0
- data/public/stylesheets/modalbox.css +110 -0
- data/public/stylesheets/scaffold.css +36 -0
- data/public/stylesheets/spinner.gif +0 -0
- data/script/about +4 -0
- data/script/console +3 -0
- data/script/cucumber +10 -0
- data/script/dbconsole +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/performance/request +3 -0
- data/script/plugin +3 -0
- data/script/process/inspector +3 -0
- data/script/process/reaper +3 -0
- data/script/process/spawner +3 -0
- data/script/runner +3 -0
- data/script/server +3 -0
- data/vendor/plugins/asset_packager/CHANGELOG +122 -0
- data/vendor/plugins/asset_packager/README +178 -0
- data/vendor/plugins/asset_packager/Rakefile +22 -0
- data/vendor/plugins/asset_packager/about.yml +8 -0
- data/vendor/plugins/asset_packager/init.rb +2 -0
- data/vendor/plugins/asset_packager/install.rb +1 -0
- data/vendor/plugins/asset_packager/lib/jsmin.rb +205 -0
- data/vendor/plugins/asset_packager/lib/synthesis/asset_package.rb +212 -0
- data/vendor/plugins/asset_packager/lib/synthesis/asset_package_helper.rb +39 -0
- data/vendor/plugins/asset_packager/tasks/asset_packager_tasks.rake +23 -0
- data/vendor/plugins/asset_packager/test/asset_package_helper_development_test.rb +100 -0
- data/vendor/plugins/asset_packager/test/asset_package_helper_production_test.rb +140 -0
- data/vendor/plugins/asset_packager/test/asset_packager_test.rb +92 -0
- data/vendor/plugins/asset_packager/test/asset_packages.yml +20 -0
- data/vendor/plugins/asset_packager/test/assets/javascripts/application.js +2 -0
- data/vendor/plugins/asset_packager/test/assets/javascripts/bar.js +4 -0
- data/vendor/plugins/asset_packager/test/assets/javascripts/controls.js +815 -0
- data/vendor/plugins/asset_packager/test/assets/javascripts/dragdrop.js +913 -0
- data/vendor/plugins/asset_packager/test/assets/javascripts/effects.js +958 -0
- data/vendor/plugins/asset_packager/test/assets/javascripts/foo.js +4 -0
- data/vendor/plugins/asset_packager/test/assets/javascripts/prototype.js +2006 -0
- data/vendor/plugins/asset_packager/test/assets/stylesheets/bar.css +16 -0
- data/vendor/plugins/asset_packager/test/assets/stylesheets/foo.css +16 -0
- data/vendor/plugins/asset_packager/test/assets/stylesheets/header.css +16 -0
- data/vendor/plugins/asset_packager/test/assets/stylesheets/screen.css +16 -0
- data/vendor/plugins/asset_packager/test/assets/stylesheets/subdir/bar.css +16 -0
- data/vendor/plugins/asset_packager/test/assets/stylesheets/subdir/foo.css +16 -0
- metadata +265 -0
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<% unless @this_is_non_information_page or ENV['RAILS_ENV']=='test' %>
|
|
22
|
+
<% if WontoMedia.ads.amazon and
|
|
23
|
+
WontoMedia.ads.amazon.associate_id %>
|
|
24
|
+
|
|
25
|
+
<div id="block-amazon" class="box" style="width: 98%; text-align: center;">
|
|
26
|
+
<script type="text/javascript"><!--
|
|
27
|
+
// adjust for our fluid-width layout as possible
|
|
28
|
+
divWidth = $('block-amazon').style.width;
|
|
29
|
+
if (divResult = divWidth.match(/^([0-9.]+)%$/)){
|
|
30
|
+
floatWidth = $('float-left').style.width; // always a %
|
|
31
|
+
floatWidth = parseFloat(floatWidth) / 100;
|
|
32
|
+
|
|
33
|
+
divWidth = parseFloat(divResult[0]) / 100;
|
|
34
|
+
divWidth = divWidth * floatWidth * window.innerWidth;
|
|
35
|
+
amazon_ad_width = Math.floor(divWidth - 4).toString();
|
|
36
|
+
}
|
|
37
|
+
else if (divResult = divWidth.match(/^([0-9.]+)px$/)){
|
|
38
|
+
amazon_ad_width = (parseInt(divResult[0]) - 4) + "px";
|
|
39
|
+
}
|
|
40
|
+
if (parseInt(amazon_ad_width) < 120)
|
|
41
|
+
amazon_ad_product_images = "hide";
|
|
42
|
+
|
|
43
|
+
// boiler-plate from Amazon
|
|
44
|
+
amazon_ad_tag = "<%= WontoMedia.ads.amazon.associate_id -%>";
|
|
45
|
+
amazon_ad_width = "160";
|
|
46
|
+
amazon_ad_height = "600";
|
|
47
|
+
amazon_ad_logo = "hide";
|
|
48
|
+
amazon_ad_border = "hide";
|
|
49
|
+
//--></script>
|
|
50
|
+
<script type="text/javascript"
|
|
51
|
+
src="http://www.assoc-amazon.com/s/ads.js"></script>
|
|
52
|
+
</div>
|
|
53
|
+
|
|
54
|
+
<% end %>
|
|
55
|
+
<% end %>
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<% if defined? @glossary_help_entries %>
|
|
22
|
+
<% if @this_is_non_information_page %>
|
|
23
|
+
<div id="block-glossary-help" class="box vertical-link-list"
|
|
24
|
+
style="width: 98%; text-align: left;">
|
|
25
|
+
<% else %>
|
|
26
|
+
<div id="block-glossary-help" class="noncontent vertical-link-list"
|
|
27
|
+
style="width: 19.5%; float: right; display: inline;">
|
|
28
|
+
<% end %>
|
|
29
|
+
|
|
30
|
+
<p style="font-size: 80%;">See the glossary entries for:</p>
|
|
31
|
+
<ul>
|
|
32
|
+
<% @glossary_help_entries.each do |link| %>
|
|
33
|
+
<li><%= link_to link[0], WontoMedia.help_url_prefix + link[1],
|
|
34
|
+
:class=>'iframeBox', :tabindex=>'0' -%></li>
|
|
35
|
+
<% end %>
|
|
36
|
+
</ul>
|
|
37
|
+
|
|
38
|
+
<p style="font-size: 80%; padding-bottom: 1.4ex;">or the
|
|
39
|
+
<%= link_to 'entire glossary',
|
|
40
|
+
"#{WontoMedia.help_url_prefix}Help:GlossaryAtoO",
|
|
41
|
+
:target=>'_blank' -%>.</p>
|
|
42
|
+
</div>
|
|
43
|
+
<% end %>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
<% unless @this_is_non_information_page or RAILS_ENV == 'test' %>
|
|
22
|
+
<% if WontoMedia.ads.google and
|
|
23
|
+
WontoMedia.ads.google.publisher_id and
|
|
24
|
+
WontoMedia.ads.google.data_page_slot %>
|
|
25
|
+
|
|
26
|
+
<div id="block-google" class="box" style="width: 98%; text-align: center;">
|
|
27
|
+
<script type="text/javascript"><!--
|
|
28
|
+
google_ad_client = "<%= WontoMedia.ads.google.publisher_id -%>";
|
|
29
|
+
/* Wontology Column */
|
|
30
|
+
google_ad_slot = "<%= WontoMedia.ads.google.data_page_slot -%>";
|
|
31
|
+
google_ad_width = 160;
|
|
32
|
+
google_ad_height = 600;
|
|
33
|
+
//--></script>
|
|
34
|
+
<script type="text/javascript"
|
|
35
|
+
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
|
|
36
|
+
</script>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<% end %>
|
|
40
|
+
<% end %>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
<% if @display_unimplemented %>
|
|
21
|
+
<div id="block-language" style="float: right;">
|
|
22
|
+
<span class="unimplemented">[language selection controls]</span>
|
|
23
|
+
</div>
|
|
24
|
+
<% end %>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
<% if @display_unimplemented %>
|
|
21
|
+
<div id="block-login" style="float: right;">
|
|
22
|
+
<span class="unimplemented">[login/out; who-am-i controls]</span>
|
|
23
|
+
</div>
|
|
24
|
+
<% end %>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
<% if @display_unimplemented %>
|
|
21
|
+
<div id="block-help" style="float: right;">
|
|
22
|
+
<span class="unimplemented">[top-level "Help" link]</span>
|
|
23
|
+
</div>
|
|
24
|
+
<% end %>
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
<% if @display_unimplemented %>
|
|
20
|
+
|
|
21
|
+
<div id="block-navigation" class="box">
|
|
22
|
+
<span class="unimplemented">
|
|
23
|
+
<ul style="margin: 0; margin-bottom: 0.6ex; padding: 0; padding-left: 1.5em;">
|
|
24
|
+
<li><%= link_to "About this site",
|
|
25
|
+
"#{WontoMedia.help_url_prefix}Help:About_Wontology.org" -%></li>
|
|
26
|
+
<li><%= link_to "Contributing", "#" -%></li>
|
|
27
|
+
<li><%= link_to "Contact Us", "#" -%></li>
|
|
28
|
+
<li><%= link_to "Press Info", "#" -%></li>
|
|
29
|
+
<li><%= link_to "WontoMedia Software",
|
|
30
|
+
"#{WontoMedia.help_url_prefix}WontoMedia" -%></li>
|
|
31
|
+
<li><a href="http://twitter.com/wontology">Follow
|
|
32
|
+
Us</a><%= image_tag 'twitter_icon', :alt=>'twitter',
|
|
33
|
+
:class=>'image-in-text' %>
|
|
34
|
+
</li>
|
|
35
|
+
</ul>
|
|
36
|
+
</span>
|
|
37
|
+
</div>
|
|
38
|
+
|
|
39
|
+
<% end %>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
<% if @display_unimplemented %>
|
|
21
|
+
<div>
|
|
22
|
+
<p class="unimplemented" style="text-align: right;">
|
|
23
|
+
[search box] <br />
|
|
24
|
+
[controls]
|
|
25
|
+
</p>
|
|
26
|
+
</div>
|
|
27
|
+
<% end %>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
|
|
20
|
+
<% if flash[:error] %>
|
|
21
|
+
<p style="color: red"><%= flash[:error] %></p>
|
|
22
|
+
<% end %>
|
|
23
|
+
<% if flash[:notice] %>
|
|
24
|
+
<p style="color: green"><%= flash[:notice] %></p>
|
|
25
|
+
<% end %>
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
<%
|
|
2
|
+
# WontoMedia - a wontology web application
|
|
3
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
4
|
+
# www.wontology.com
|
|
5
|
+
#
|
|
6
|
+
# This program is free software: you can redistribute it and/or modify
|
|
7
|
+
# it under the terms of the GNU Affero General Public License version
|
|
8
|
+
# 3 as published by the Free Software Foundation.
|
|
9
|
+
#
|
|
10
|
+
# This program is distributed in the hope that it will be useful, but
|
|
11
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
13
|
+
# Affero General Public License for more details.
|
|
14
|
+
#
|
|
15
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
16
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
17
|
+
# see "http://www.gnu.org/licenses/".
|
|
18
|
+
%>
|
|
19
|
+
<% @display_unimplemented = false %>
|
|
20
|
+
|
|
21
|
+
<% content_for :page_body do %>
|
|
22
|
+
<% if @title_text %>
|
|
23
|
+
<div id="page-title" style="position: absolute; top: 0; left: 15.5%; height: 8ex; width: 69.7%; overflow: hidden;">
|
|
24
|
+
<h1 style="white-space: nowrap;"><%= @title_text -%></h1>
|
|
25
|
+
</div>
|
|
26
|
+
<% end %>
|
|
27
|
+
<div id="float-center-right"
|
|
28
|
+
style="float: right; width: 85%; margin-top: 8ex;">
|
|
29
|
+
<div id="column-content" class="content" style="float: left; width: 81.8%;">
|
|
30
|
+
<% unless @this_is_non_information_page %>
|
|
31
|
+
<%= render :partial => "layouts/glossary_help_box" -%>
|
|
32
|
+
<% end %>
|
|
33
|
+
<%= render :partial => "layouts/status_msgs" -%>
|
|
34
|
+
<%= yield -%>
|
|
35
|
+
</div>
|
|
36
|
+
<div id="column-right"
|
|
37
|
+
style="float: right; width: 16.9%; text-align: center; margin-top: 0;">
|
|
38
|
+
<% if @this_is_non_information_page %>
|
|
39
|
+
<%= render :partial => "layouts/glossary_help_box" -%>
|
|
40
|
+
<% end %>
|
|
41
|
+
<%= render :partial => "layouts/google_ads" %>
|
|
42
|
+
</div>
|
|
43
|
+
</div>
|
|
44
|
+
|
|
45
|
+
<div id="float-left" style="float: left; width: 14.4%;">
|
|
46
|
+
<div id="container-absolutes">
|
|
47
|
+
<div id="block-search"
|
|
48
|
+
style="width: 19%; position: absolute; top: 0; right: 0;">
|
|
49
|
+
<%= render :partial => "layouts/search_box" %>
|
|
50
|
+
</div>
|
|
51
|
+
<div id="page-top-controls"
|
|
52
|
+
style="position: absolute; top: 0; right: 16.9%;">
|
|
53
|
+
<%= render :partial => "layouts/master_help" %>
|
|
54
|
+
<%= render :partial => "layouts/language_select" %>
|
|
55
|
+
<%= render :partial => "layouts/login_controls" %>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div id="column-left">
|
|
59
|
+
<%= link_to(
|
|
60
|
+
image_tag( '/images/logo.png', :alt=>'Logo', :width=>'100%',
|
|
61
|
+
:style=>'margin-bottom: 0.7ex;' ), root_url ) %>
|
|
62
|
+
<%= render :partial => "layouts/amazon_ads" %>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<% end -%>
|
|
66
|
+
|
|
67
|
+
<%= render :file => 'layouts/base' %>
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
3
|
+
|
|
4
|
+
<%
|
|
5
|
+
# WontoMedia - a wontology web application
|
|
6
|
+
# Copyright (C) 2010 - Glen E. Ivey
|
|
7
|
+
# www.wontology.com
|
|
8
|
+
#
|
|
9
|
+
# This program is free software: you can redistribute it and/or modify
|
|
10
|
+
# it under the terms of the GNU Affero General Public License version
|
|
11
|
+
# 3 as published by the Free Software Foundation.
|
|
12
|
+
#
|
|
13
|
+
# This program is distributed in the hope that it will be useful, but
|
|
14
|
+
# WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
15
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
16
|
+
# Affero General Public License for more details.
|
|
17
|
+
#
|
|
18
|
+
# You should have received a copy of the GNU Affero General Public License
|
|
19
|
+
# along with this program in the file COPYING and/or LICENSE. If not,
|
|
20
|
+
# see "http://www.gnu.org/licenses/".
|
|
21
|
+
%>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
25
|
+
<head>
|
|
26
|
+
<meta http-equiv="content-type" content="text/html;charset=UTF-8" />
|
|
27
|
+
<% if @title_text %>
|
|
28
|
+
<title><%= @title_text + " — " + WontoMedia.site_title -%></title>
|
|
29
|
+
<% else %>
|
|
30
|
+
<title><%= WontoMedia.site_title -%></title>
|
|
31
|
+
<% end %>
|
|
32
|
+
<%= stylesheet_link_merged :base %>
|
|
33
|
+
|
|
34
|
+
<% if RAILS_ENV == 'test' %>
|
|
35
|
+
<%= javascript_include_tag 'jquery' %>
|
|
36
|
+
<script>
|
|
37
|
+
if (HTMLImageElement){ // patch compatibility between
|
|
38
|
+
// jQuery+fancybox and env.js
|
|
39
|
+
var hackImageConstructor = function(){
|
|
40
|
+
this.HTMLImageElement = HTMLImageElement;
|
|
41
|
+
this.HTMLImageElement(document); // note closure
|
|
42
|
+
}
|
|
43
|
+
hackImageConstructor.prototype = new HTMLImageElement;
|
|
44
|
+
window.Image = hackImageConstructor;
|
|
45
|
+
jQuery.support.opacity = true; // short-circuit junk in 'fancybox'
|
|
46
|
+
}
|
|
47
|
+
</script>
|
|
48
|
+
<%= javascript_include_merged :topAfterJQuery %>
|
|
49
|
+
<% else %>
|
|
50
|
+
<%= javascript_include_merged :top %>
|
|
51
|
+
<% end %>
|
|
52
|
+
|
|
53
|
+
<%= yield :head %>
|
|
54
|
+
</head>
|
|
55
|
+
<body style="margin-top: 0">
|
|
56
|
+
<div id="whole-page">
|
|
57
|
+
<%= yield(:page_body) or yield %>
|
|
58
|
+
|
|
59
|
+
<div id="block-footer" style="width: 100%; clear: both">
|
|
60
|
+
<p class="fine-print">
|
|
61
|
+
Copyright © 2010, Glen E. Ivey —
|
|
62
|
+
Powered by <%= link_to 'WontoMedia',
|
|
63
|
+
'http://wontomedia.rubyforge.org/' %>
|
|
64
|
+
— Software and page templates licensed under
|
|
65
|
+
<%= link_to 'GNU AGPL v3',
|
|
66
|
+
'http://www.gnu.org/licenses/agpl-3.0.html' %>
|
|
67
|
+
— Page content licensed under <%= link_to 'GNU FDL v1.3',
|
|
68
|
+
'http://www.gnu.org/licenses/fdl-1.3.html' %>
|
|
69
|
+
</p>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
<%= yield(:first_bottom_page_js) %>
|
|
73
|
+
<%= javascript_include_merged :bottomJS %>
|
|
74
|
+
<% unless RAILS_ENV == 'test' # include Google Analytics
|
|
75
|
+
if WontoMedia.analytics.google and
|
|
76
|
+
WontoMedia.analytics.google.profile_id %>
|
|
77
|
+
<script type="text/javascript">
|
|
78
|
+
var gaJsHost = (("https:" == document.location.protocol) ?
|
|
79
|
+
"https://ssl." : "http://www.");
|
|
80
|
+
document.write(unescape("%3Cscript src='" + gaJsHost +
|
|
81
|
+
"google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E" ));
|
|
82
|
+
</script>
|
|
83
|
+
<script type="text/javascript">
|
|
84
|
+
try {
|
|
85
|
+
var pageTracker = _gat._getTracker(
|
|
86
|
+
"<%= WontoMedia.analytics.google.profile_id -%>");
|
|
87
|
+
pageTracker._trackPageview();
|
|
88
|
+
} catch(err) {}</script>
|
|
89
|
+
<% end %>
|
|
90
|
+
<% end %>
|
|
91
|
+
<%= yield(:last_bottom_page_js) %>
|
|
92
|
+
</body>
|
|
93
|
+
</html>
|