% # WontoMedia - a wontology web application # Copyright (C) 2011 - Glen E. Ivey # www.wontology.com # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License version # 3 as published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU # Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License # along with this program in the file COPYING and/or LICENSE. If not, # see "http://www.gnu.org/licenses/". %> <% @title_text = (h @subject.name) + " : " + (h @predicate.name) + " : " if @connection.kind_of_obj == Connection::OBJECT_KIND_ITEM @title_text += (h @obj.name) else @title_text += "'#{h @connection.scalar_obj}'" end # initialize array to define "Glossary Help" box of links: @glossary_help_entries = [ [ 'Subject', 'Help:GlossaryPtoZ#anchor_Subject' ], [ 'Predicate', 'Help:GlossaryPtoZ#anchor_Predicate' ], [ 'Object', 'Help:GlossaryAtoO#anchor_Object' ], [ 'Item', 'Help:GlossaryAtoO#anchor_Item' ], [ 'Connection', 'Help:GlossaryAtoO#anchor_Connection' ] ] %>
Subject: |
<%= link_to "#{h @subject.title}",
item_by_name_path(@subject.name) %> —
(<%= h @subject.name %>)
<%= h @subject.description %> |
Predicate: |
<%= link_to "#{h @predicate.title}",
item_by_name_path(@predicate.name) %>
— (<%= h @predicate.name %>)
<%= h @predicate.description %> |
Object: |
<% if @connection.kind_of_obj == Connection::OBJECT_KIND_ITEM %>
<%= link_to "#{h @obj.title}", item_by_name_path(@obj.name) %>
— (<%= h @obj.name %>)
<%= h @obj.description %> <% else %> <%= h @connection.scalar_obj %> <% end %> |