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.
Files changed (193) hide show
  1. data/COPYING +661 -0
  2. data/COPYING.DOCUMENTATION +450 -0
  3. data/LICENSE +661 -0
  4. data/README.markdown +56 -0
  5. data/Rakefile +185 -0
  6. data/VERSION.yml +4 -0
  7. data/app/controllers/admin_controller.rb +144 -0
  8. data/app/controllers/application_controller.rb +29 -0
  9. data/app/controllers/connections_controller.rb +150 -0
  10. data/app/controllers/items_controller.rb +365 -0
  11. data/app/helpers/connections_helper.rb +67 -0
  12. data/app/helpers/format_helper.rb +154 -0
  13. data/app/helpers/items_helper.rb +105 -0
  14. data/app/models/category_item.rb +23 -0
  15. data/app/models/connection.rb +210 -0
  16. data/app/models/individual_item.rb +23 -0
  17. data/app/models/item.rb +86 -0
  18. data/app/models/property_item.rb +23 -0
  19. data/app/models/qualified_item.rb +23 -0
  20. data/app/views/admin/index.html.erb +74 -0
  21. data/app/views/connections/_index_outbound_links.html.erb +48 -0
  22. data/app/views/connections/_spo_select_controls.html.erb +151 -0
  23. data/app/views/connections/edit.html.erb +70 -0
  24. data/app/views/connections/index.html.erb +84 -0
  25. data/app/views/connections/new.html.erb +61 -0
  26. data/app/views/connections/show.html.erb +110 -0
  27. data/app/views/items/_active_content.html.erb +26 -0
  28. data/app/views/items/_content_examples.html.erb +55 -0
  29. data/app/views/items/_core_tasks.html.erb +23 -0
  30. data/app/views/items/_form_fields.html.erb +69 -0
  31. data/app/views/items/_list_outbound_links.html.erb +58 -0
  32. data/app/views/items/_screen_select.html.erb +24 -0
  33. data/app/views/items/_show_outbound_links.html.erb +70 -0
  34. data/app/views/items/_topic_list.html.erb +26 -0
  35. data/app/views/items/_type_select.html.erb +47 -0
  36. data/app/views/items/edit.html.erb +63 -0
  37. data/app/views/items/index.html.erb +74 -0
  38. data/app/views/items/new.html.erb +124 -0
  39. data/app/views/items/newpop.html.erb +58 -0
  40. data/app/views/items/show.html.erb +209 -0
  41. data/app/views/layouts/_amazon_ads.html.erb +55 -0
  42. data/app/views/layouts/_glossary_help_box.html.erb +43 -0
  43. data/app/views/layouts/_google_ads.html.erb +40 -0
  44. data/app/views/layouts/_language_select.html.erb +24 -0
  45. data/app/views/layouts/_login_controls.html.erb +24 -0
  46. data/app/views/layouts/_master_help.html.erb +24 -0
  47. data/app/views/layouts/_navigation_menu.html.erb +39 -0
  48. data/app/views/layouts/_search_box.html.erb +27 -0
  49. data/app/views/layouts/_status_msgs.html.erb +25 -0
  50. data/app/views/layouts/application.html.erb +67 -0
  51. data/app/views/layouts/base.html.erb +93 -0
  52. data/app/views/layouts/home.html.erb +67 -0
  53. data/app/views/layouts/popup.html.erb +23 -0
  54. data/assets/wontomedia-sample.rb +47 -0
  55. data/config/asset_packages.yml +44 -0
  56. data/config/boot.rb +110 -0
  57. data/config/cucumber.yml +65 -0
  58. data/config/database-mysql-development.yml +47 -0
  59. data/config/database-mysql.yml +26 -0
  60. data/config/environment.rb +94 -0
  61. data/config/environments/cucumber.rb +29 -0
  62. data/config/environments/development.rb +26 -0
  63. data/config/environments/production.rb +33 -0
  64. data/config/environments/test.rb +31 -0
  65. data/config/initializers/inflections.rb +19 -0
  66. data/config/initializers/mime_types.rb +14 -0
  67. data/config/initializers/new_rails_defaults.rb +26 -0
  68. data/config/locales/en.yml +14 -0
  69. data/config/routes.rb +37 -0
  70. data/db/fixtures/connections.yml +96 -0
  71. data/db/fixtures/items.yml +277 -0
  72. data/db/migrate/20090312212805_create_items.rb +31 -0
  73. data/db/migrate/20090406221320_create_connections.rb +32 -0
  74. data/db/migrate/20090411014503_add_type_for_item_subclasses.rb +29 -0
  75. data/db/migrate/20090415142152_rename_item_type.rb +31 -0
  76. data/db/migrate/20090518022918_rename_object_and_self.rb +33 -0
  77. data/db/migrate/20090529171442_add_flags_to_items.rb +27 -0
  78. data/db/migrate/20090529171508_add_flags_to_connections.rb +27 -0
  79. data/db/migrate/20090605213800_flags_columns_not_null.rb +29 -0
  80. data/db/migrate/20090605215028_flags_columns_default_zero.rb +29 -0
  81. data/db/schema.rb +30 -0
  82. data/default-custom/app/views/items/_home_extern_list.html.erb +32 -0
  83. data/default-custom/app/views/items/_home_introductory_text.html.erb +70 -0
  84. data/default-custom/app/views/items/home.html.erb +77 -0
  85. data/default-custom/public/images/logo.png +0 -0
  86. data/default-custom/public/images/logo.svg +74 -0
  87. data/default-custom/public/stylesheets/wm.css +301 -0
  88. data/doc/README.markdown +44 -0
  89. data/doc/README_FOR_APP +82 -0
  90. data/doc/customization.markdown +93 -0
  91. data/doc/scripts/rake-customize.markdown +83 -0
  92. data/lib/helpers/connection_helper.rb +41 -0
  93. data/lib/helpers/item_helper.rb +141 -0
  94. data/lib/helpers/tripple_navigation.rb +158 -0
  95. data/lib/tasks/cucumber.rake +83 -0
  96. data/lib/tasks/customize.rake +70 -0
  97. data/lib/tasks/db.rake +65 -0
  98. data/lib/tasks/javascript_testing_tasks.rake +176 -0
  99. data/public/404.html +50 -0
  100. data/public/422.html +50 -0
  101. data/public/500.html +53 -0
  102. data/public/dispatch.cgi +20 -0
  103. data/public/dispatch.fcgi +34 -0
  104. data/public/dispatch.rb +20 -0
  105. data/public/favicon.ico +0 -0
  106. data/public/images/blank_error_icon.png +0 -0
  107. data/public/images/blank_status_icon.png +0 -0
  108. data/public/images/error_error_icon.png +0 -0
  109. data/public/images/error_status_icon.png +0 -0
  110. data/public/images/good_status_icon.png +0 -0
  111. data/public/images/help_icon.png +0 -0
  112. data/public/images/twitter_icon.png +0 -0
  113. data/public/images/warn_error_icon.png +0 -0
  114. data/public/images/working_status_icon.gif +0 -0
  115. data/public/javascripts/application.js +56 -0
  116. data/public/javascripts/controls.js +963 -0
  117. data/public/javascripts/dragdrop.js +973 -0
  118. data/public/javascripts/effects.js +1128 -0
  119. data/public/javascripts/event.simulate.js +64 -0
  120. data/public/javascripts/fancybox.js +43 -0
  121. data/public/javascripts/forConnectionsForms.js +218 -0
  122. data/public/javascripts/forItemsForms.js +511 -0
  123. data/public/javascripts/itemCreatePopup.js +115 -0
  124. data/public/javascripts/itemTitleToName.js +119 -0
  125. data/public/javascripts/jquery.js +4376 -0
  126. data/public/javascripts/modalbox.js +502 -0
  127. data/public/javascripts/prototype.js +4320 -0
  128. data/public/javascripts/reconcileJQueryAndPrototype.js +19 -0
  129. data/public/robots.txt +7 -0
  130. data/public/stylesheets/blank.gif +0 -0
  131. data/public/stylesheets/fancy_close.png +0 -0
  132. data/public/stylesheets/fancy_loading.png +0 -0
  133. data/public/stylesheets/fancy_nav_left.png +0 -0
  134. data/public/stylesheets/fancy_nav_right.png +0 -0
  135. data/public/stylesheets/fancy_shadow_e.png +0 -0
  136. data/public/stylesheets/fancy_shadow_n.png +0 -0
  137. data/public/stylesheets/fancy_shadow_ne.png +0 -0
  138. data/public/stylesheets/fancy_shadow_nw.png +0 -0
  139. data/public/stylesheets/fancy_shadow_s.png +0 -0
  140. data/public/stylesheets/fancy_shadow_se.png +0 -0
  141. data/public/stylesheets/fancy_shadow_sw.png +0 -0
  142. data/public/stylesheets/fancy_shadow_w.png +0 -0
  143. data/public/stylesheets/fancy_title_left.png +0 -0
  144. data/public/stylesheets/fancy_title_main.png +0 -0
  145. data/public/stylesheets/fancy_title_over.png +0 -0
  146. data/public/stylesheets/fancy_title_right.png +0 -0
  147. data/public/stylesheets/fancybox.css +333 -0
  148. data/public/stylesheets/modalbox.css +110 -0
  149. data/public/stylesheets/scaffold.css +36 -0
  150. data/public/stylesheets/spinner.gif +0 -0
  151. data/script/about +4 -0
  152. data/script/console +3 -0
  153. data/script/cucumber +10 -0
  154. data/script/dbconsole +3 -0
  155. data/script/destroy +3 -0
  156. data/script/generate +3 -0
  157. data/script/performance/benchmarker +3 -0
  158. data/script/performance/profiler +3 -0
  159. data/script/performance/request +3 -0
  160. data/script/plugin +3 -0
  161. data/script/process/inspector +3 -0
  162. data/script/process/reaper +3 -0
  163. data/script/process/spawner +3 -0
  164. data/script/runner +3 -0
  165. data/script/server +3 -0
  166. data/vendor/plugins/asset_packager/CHANGELOG +122 -0
  167. data/vendor/plugins/asset_packager/README +178 -0
  168. data/vendor/plugins/asset_packager/Rakefile +22 -0
  169. data/vendor/plugins/asset_packager/about.yml +8 -0
  170. data/vendor/plugins/asset_packager/init.rb +2 -0
  171. data/vendor/plugins/asset_packager/install.rb +1 -0
  172. data/vendor/plugins/asset_packager/lib/jsmin.rb +205 -0
  173. data/vendor/plugins/asset_packager/lib/synthesis/asset_package.rb +212 -0
  174. data/vendor/plugins/asset_packager/lib/synthesis/asset_package_helper.rb +39 -0
  175. data/vendor/plugins/asset_packager/tasks/asset_packager_tasks.rake +23 -0
  176. data/vendor/plugins/asset_packager/test/asset_package_helper_development_test.rb +100 -0
  177. data/vendor/plugins/asset_packager/test/asset_package_helper_production_test.rb +140 -0
  178. data/vendor/plugins/asset_packager/test/asset_packager_test.rb +92 -0
  179. data/vendor/plugins/asset_packager/test/asset_packages.yml +20 -0
  180. data/vendor/plugins/asset_packager/test/assets/javascripts/application.js +2 -0
  181. data/vendor/plugins/asset_packager/test/assets/javascripts/bar.js +4 -0
  182. data/vendor/plugins/asset_packager/test/assets/javascripts/controls.js +815 -0
  183. data/vendor/plugins/asset_packager/test/assets/javascripts/dragdrop.js +913 -0
  184. data/vendor/plugins/asset_packager/test/assets/javascripts/effects.js +958 -0
  185. data/vendor/plugins/asset_packager/test/assets/javascripts/foo.js +4 -0
  186. data/vendor/plugins/asset_packager/test/assets/javascripts/prototype.js +2006 -0
  187. data/vendor/plugins/asset_packager/test/assets/stylesheets/bar.css +16 -0
  188. data/vendor/plugins/asset_packager/test/assets/stylesheets/foo.css +16 -0
  189. data/vendor/plugins/asset_packager/test/assets/stylesheets/header.css +16 -0
  190. data/vendor/plugins/asset_packager/test/assets/stylesheets/screen.css +16 -0
  191. data/vendor/plugins/asset_packager/test/assets/stylesheets/subdir/bar.css +16 -0
  192. data/vendor/plugins/asset_packager/test/assets/stylesheets/subdir/foo.css +16 -0
  193. metadata +265 -0
@@ -0,0 +1,61 @@
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
+ <% content_for :head do %>
22
+ <meta name="robots" content="noindex" />
23
+ <meta name="googlebot" content="noindex" />
24
+ <% end %>
25
+
26
+ <%
27
+ @title_text = 'Make a new connection'
28
+
29
+ # initialize array to define "Glossary Help" box of links:
30
+ @glossary_help_entries = [
31
+ [ 'Item', 'Help:GlossaryAtoO#anchor_Item' ],
32
+ [ 'Connection', 'Help:GlossaryAtoO#anchor_Connection' ]
33
+ ]
34
+ %>
35
+
36
+
37
+ <% form_for(@connection) do |f| %>
38
+ <%= f.error_messages %>
39
+ <%= render :partial => "spo_select_controls",
40
+ :locals => {
41
+ :f => f, :connection => @connection,
42
+ :items => @items, :verbs => @verbs
43
+ } %>
44
+ <p><%= f.submit 'Create', :tabindex=>'40' %></p>
45
+ <% end %>
46
+
47
+ <div class="horizontal-link-list"><ul>
48
+ <li><%= link_to 'Cancel,&nbsp;show&nbsp;connection&nbsp;list',
49
+ connections_path, :rel => 'nofollow' -%></li>
50
+ <li><%= link_to 'Cancel,&nbsp;show&nbsp;item&nbsp;list', items_path,
51
+ :rel => 'nofollow' -%></li>
52
+ </ul></div>
53
+
54
+
55
+ <% content_for :first_bottom_page_js do %>
56
+ <script type="text/javascript">
57
+ inAConnectionsForm = true;
58
+ creatingNewConnection = true;
59
+ creatingNewItem = true;
60
+ </script>
61
+ <% end %>
@@ -0,0 +1,110 @@
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
+ <%
22
+ @title_text = (h @subject.name) + " : " +
23
+ (h @predicate.name) + " : " +
24
+ (h @obj.name)
25
+
26
+ # initialize array to define "Glossary Help" box of links:
27
+ @glossary_help_entries = [
28
+ [ 'Subject', 'Help:GlossaryPtoZ#anchor_Subject' ],
29
+ [ 'Predicate', 'Help:GlossaryPtoZ#anchor_Predicate' ],
30
+ [ 'Object', 'Help:GlossaryAtoO#anchor_Object' ],
31
+ [ 'Item', 'Help:GlossaryAtoO#anchor_Item' ],
32
+ [ 'Connection', 'Help:GlossaryAtoO#anchor_Connection' ]
33
+ ]
34
+ %>
35
+
36
+
37
+ <div class="headline">Connection content<%=
38
+ popup_help_icon "Help, connection content", "Help:Popup/HeaderConnection" %>
39
+ </div>
40
+
41
+
42
+ <table>
43
+ <tr><td>
44
+ <b>Subject:</b>
45
+ </td><td>
46
+ <%= link_to "<b>#{h @subject.title}</b>", item_path(@subject) %> &mdash;
47
+ (<b><%= h @subject.name %></b>)
48
+ <p>
49
+ <%= h @subject.description %>
50
+ </p>
51
+ </td></tr>
52
+
53
+ <tr><td>
54
+ <b>Predicate:</b>
55
+ </td><td>
56
+ <%= link_to "<b>#{h @predicate.title}</b>", item_path(@predicate) %>
57
+ &mdash; (<b><%= h @predicate.name %></b>)
58
+ <p>
59
+ <%= h @predicate.description %>
60
+ </p>
61
+ </td></tr>
62
+
63
+ <tr><td>
64
+ <b>Object:</b>
65
+ </td><td>
66
+ <%= link_to "<b>#{h @obj.title}</b>", item_path(@obj) %> &mdash;
67
+ (<b><%= h @obj.name %></b>)
68
+ <p>
69
+ <%= h @obj.description %>
70
+ </p>
71
+ </td></tr>
72
+ </table>
73
+
74
+ <div class="horizontal-link-list">
75
+ <ul>
76
+ <% if (@connection.flags & Connection::DATA_IS_UNALTERABLE) == 0 %>
77
+ <li>
78
+ <%= popup_help_icon( "Help edit items", "Help:Popup/ItemEdit",
79
+ link_to( 'Edit&hellip;', edit_connection_path(@connection),
80
+ :rel => 'nofollow' ) ) -%></li>
81
+ <li>
82
+ <%= popup_help_icon( "Help delete items", "Help:Popup/ItemDelete",
83
+ link_to( 'Delete', connection_path(@connection),
84
+ :rel => 'nofollow', :confirm => 'Are you sure?',
85
+ :method => :delete ) ) -%></li>
86
+ <% end %>
87
+
88
+ <li>
89
+ <%= link_to 'Show connection list', connections_path -%><%=
90
+ popup_help_icon "Help for items list", "Help:Popup/ShowConnections"
91
+ -%></li>
92
+
93
+ <li>
94
+ <%= link_to 'Create a new connection', new_connection_path,
95
+ :rel => 'nofollow' -%><%=
96
+ popup_help_icon "Help for connections create/new",
97
+ "Help:Popup/ConnectionAdd"
98
+ -%></li>
99
+
100
+ <li>
101
+ <%= link_to 'Show item list', items_path -%><%=
102
+ popup_help_icon "Help for items list", "Help:Popup/ShowItems"
103
+ -%></li>
104
+
105
+ <li>
106
+ <%= link_to 'Create a new item', new_item_path, :rel => 'nofollow' -%><%=
107
+ popup_help_icon "Help for items create/new", "Help:Popup/ItemAdd"
108
+ -%></li>
109
+ </ul>
110
+ </div>
@@ -0,0 +1,26 @@
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 @display_unimplemented %>
22
+ <div id="block-active" class="box">
23
+ <p class="unimplemented">[area to highlight sections of the
24
+ wontology that have recent/heavy activity]</p>
25
+ </div>
26
+ <% end -%>
@@ -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
+ <% if @display_unimplemented %>
21
+ <p class="unimplemented">[The purpose of this area is to highlight
22
+ "samples" of the local installation's content. For now, we're
23
+ displaying the complete set of non-Property items.]</p>
24
+ <% end %>
25
+
26
+ <div class="subheading">Recently Added Items</div>
27
+ <style>
28
+ .item-title {
29
+ font-size: 120%;
30
+ font-weight: bold;
31
+ margin: 0;
32
+ white-space: nowrap;
33
+ }
34
+ .item-desc {
35
+ margin: 0;
36
+ margin-bottom: 2ex;
37
+ }
38
+ </style>
39
+
40
+ <% nouns_listed = 0
41
+ @nouns.each do |item| %>
42
+ <p class="item-title">
43
+ <%= link_to "#{h filter_parenthetical item.title}", item_path(item) %>
44
+ </p>
45
+ <p class="item-desc">
46
+ <% desc = h item.description
47
+ if desc.length > 180
48
+ desc = desc[0,180] + '&hellip;'
49
+ end
50
+ %>
51
+ <%= desc %>
52
+ </p>
53
+
54
+ <% break if (nouns_listed += 1) >= 20
55
+ end %>
@@ -0,0 +1,23 @@
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
+ <hr />
21
+ <p class="unimplemented">[area to list/"invite users to" core
22
+ wontology tasks: browsing, searching, contributing]</p>
23
+ <% end -%>
@@ -0,0 +1,69 @@
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
+ <p class="inputpara">
22
+ <%= f.label :title %>
23
+ <%= popup_help_icon "Help for title", "Help:Popup/ItemTitle" %>
24
+ <%= image_tag "blank_error_icon.png", :id=>"title_error_icon", :alt=>"",
25
+ :size=>"16x16" -%>
26
+ <br />
27
+ <%= f.text_field :title, :tabindex => "2", :style => "width: 95%;" %>
28
+ </p><p class="directions">
29
+ <span id="title_required">Required.</span>
30
+ <span id="title_multi_line">One line only</span>
31
+ (any text).
32
+ <span id="title_too_long">No more than 255 characters.</span>
33
+ Portions in parentheses will be hidden when Title is displayed
34
+ in small spaces.
35
+ </p>
36
+
37
+ <p class="inputpara">
38
+ <%= f.label :name %>
39
+ <%= popup_help_icon "Help for name", "Help:Popup/ItemName" %>
40
+ <%= image_tag "blank_error_icon.png", :id=>"name_error_icon", :alt=>"",
41
+ :size=>"16x16" %>
42
+ <%= image_tag "blank_status_icon.png", :id=>"name_status_icon", :alt=>"",
43
+ :size=>"32x16" %>
44
+ <br />
45
+ <%= f.text_field :name, :tabindex => "3", :style => "width: 95%;" %>
46
+ </p><p class="directions">
47
+ <span id="name_required">Required.</span>
48
+ <span id="name_start_char">Start with a letter.</span>
49
+ <span id="name_nth_char">Letters, numbers, - and _ are OK.</span>
50
+ <span id="name_too_long">No more than 80 characters.</span>
51
+ <span id="name_must_be_unique">Must be unique for every item.</span>
52
+ <span id="name_is_unique" class="confirmationTextInvisible">
53
+ 'Name' is unique!</span>
54
+ </p>
55
+
56
+ <p class="inputpara">
57
+ <%= f.label :description %>
58
+ <%= popup_help_icon "Help for description", "Help:Popup/ItemDescription" %>
59
+ <%= image_tag "blank_error_icon.png", :id=>"description_error_icon", :alt=>"",
60
+ :size=>"16x16" %>
61
+ <br />
62
+ <%= f.text_area :description, :style => "width: 95%; height: 7em",
63
+ :tabindex => "4" %>
64
+ </p><p class="directions">
65
+ Describe what this item represents.
66
+ <span id="description_recommended">Recommended.</span>
67
+ <span id="description_too_long">Less than 64K characters.</span>
68
+ No formatting.
69
+ </p>
@@ -0,0 +1,58 @@
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
+ <% @have_displayed_out_links = false unless defined? @have_displayed_out_links
21
+ %>
22
+
23
+ <ul>
24
+ <% if !defined? generating_index_page or !generating_index_page %>
25
+ <li>
26
+ <%= link_to 'View all items', items_path -%><%
27
+ unless @have_displayed_out_links %><%=
28
+ popup_help_icon "Help for items list", "Help:Popup/ShowItems" -%><%
29
+ end %>
30
+ </li>
31
+ <% end %>
32
+
33
+ <li>
34
+ <%= link_to 'Create a new item', new_item_path, :rel => 'nofollow' -%><%
35
+ unless @have_displayed_out_links %><%=
36
+ popup_help_icon "Help for items create/new", "Help:Popup/ItemAdd" -%><%
37
+ end %>
38
+ </li>
39
+
40
+ <li>
41
+ <%= link_to 'View all connections', connections_path -%><%
42
+ unless @have_displayed_out_links %><%=
43
+ popup_help_icon "Help for connections list",
44
+ "Help:Popup/ShowConnections" -%><%
45
+ end %>
46
+ </li>
47
+
48
+ <li>
49
+ <%= link_to 'Create a new connection', new_connection_path,
50
+ :rel => 'nofollow' -%><%
51
+ unless @have_displayed_out_links %><%=
52
+ popup_help_icon "Help for connections create/new",
53
+ "Help:Popup/ConnectionAdd" -%><%
54
+ end %>
55
+ </li>
56
+ </ul>
57
+
58
+ <% @have_displayed_out_links = true %>
@@ -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
+ <% if @display_unimplemented %>
20
+ <p class="unimplemented">[area containing links which select among
21
+ the different types of information presentation/edit screens]</p>
22
+ <% end -%>
23
+
24
+
@@ -0,0 +1,70 @@
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
+ <div class="noncontent vertical-link-list"
21
+ style="width: 19.5%; float:right; display: inline; position: relative; top: -1.5ex;">
22
+ <ul>
23
+ <% if (@item.flags & Item::DATA_IS_UNALTERABLE) == 0 %>
24
+ <li>
25
+ <%= link_to 'Edit this item', edit_item_path(@item),
26
+ :rel => 'nofollow' -%><%=
27
+ popup_help_icon "Help edit items", "Help:Popup/ItemEdit" -%>
28
+ </li>
29
+
30
+ <li>
31
+ <% if @connection_list.empty? %>
32
+ <%= link_to 'Delete this item', item_path(@item),
33
+ :rel => 'nofollow', :confirm => 'Are you sure?',
34
+ :method => :delete -%><%=
35
+ popup_help_icon "Help delete items", "Help:Popup/ItemDelete" -%>
36
+ <% else %>
37
+ <span class="inactiveLink">
38
+ <%= link_to_function "Can't delete this item",
39
+ "cantDeleteItem_Popup()" -%><%=
40
+ popup_help_icon "Help with can't-be-deleted items",
41
+ "Help:Popup/ItemCantDelete" -%>
42
+ </span>
43
+ <% end %>
44
+ </li>
45
+ <% end %>
46
+
47
+ <li>
48
+ <%= link_to 'Show item list', items_path -%><%=
49
+ popup_help_icon "Help, item list", "Help:Popup/ShowItems" -%>
50
+ </li>
51
+
52
+ <li>
53
+ <%= link_to 'Add a new item', new_item_path, :rel => 'nofollow' -%><%=
54
+ popup_help_icon "Help, create item", "Help:Popup/ItemAdd" -%>
55
+ </li>
56
+
57
+ <li>
58
+ <%= link_to 'Show connection list', connections_path -%><%=
59
+ popup_help_icon "Help, connection list",
60
+ "Help:Popup/ShowConnections" -%>
61
+ </li>
62
+
63
+ <li>
64
+ <%= link_to 'Add a new connection', new_connection_path,
65
+ :rel => 'nofollow' -%><%=
66
+ popup_help_icon "Help, create connection",
67
+ "Help:Popup/ConnectionAdd" -%>
68
+ </li>
69
+ </ul>
70
+ </div>