Changeset 102

Show
Ignore:
Timestamp:
10/08/08 00:07:20 (5 years ago)
Author:
msilva
Message:

added default views to demo application: mem-rdfs.rdf. This had to be done so that the application defines its own html instead of relying on HyperDE's internal rhtml. This fixes visualization according to HyperDE changes made on review 99.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/db/mem-rdfs.rdf

    r94 r102  
    27082708</rdf:Description> 
    27092709 
     2710<rdf:Description rdf:about="http://sr#o_8d38a541"> 
     2711        <rdf:type rdf:resource="http://sr#ContextView"/> 
     2712        <sr:layout_view_id rdf:resource="http://sr#o_c40c118b"/> 
     2713        <sr:name>context.rhtml</sr:name> 
     2714        <sr:template>&lt;div id=landmarks&gt;&lt;%= render_landmarks(@landmarks) %&gt;&lt;/div&gt; 
     2715&lt;div id=breadcrumb&gt;&lt;%= render_breadcrumb(&quot;&amp;nbsp;::&amp;nbsp;&quot;) %&gt;&lt;/div&gt; 
     2716&lt;div id=context&gt; 
     2717&lt;% unless @context.empty? %&gt; 
     2718  &lt;div id=context_title&gt;&lt;%= truncate(@context.current.label, 50) %&gt;&lt;/div&gt; 
     2719  &lt;div class=context_class&gt;[em &lt;%= @context.title || @context.name %&gt; &lt;%= render_params(@context.parameters_values) %&gt;]&lt;/div&gt; 
     2720  &lt;div id=context_navigation&gt;&lt;%= render_context_navigation(@context) %&gt;&lt;/div&gt; 
     2721  &lt;div id=context_body&gt; 
     2722    &lt;div id=node_attributes&gt;&lt;%= render_node_attributes(@context.current) %&gt;&lt;/div&gt; 
     2723  &lt;/div&gt; 
     2724  &lt;div id=context_index&gt;&lt;%= render_context_index(@context) %&gt;&lt;/div&gt; 
     2725&lt;% else %&gt; 
     2726&lt;h1&gt;This context is empty!&lt;/h1&gt; 
     2727&lt;% end %&gt; 
     2728&lt;/div&gt;</sr:template> 
     2729</rdf:Description> 
     2730 
     2731<rdf:Description rdf:about="http://sr#o_da606d0b"> 
     2732        <rdf:type rdf:resource="http://sr#IndexView"/> 
     2733        <sr:layout_view_id rdf:resource="http://sr#o_c40c118b"/> 
     2734        <sr:name>show_index.rhtml</sr:name> 
     2735        <sr:template>&lt;div id=landmarks&gt;&lt;%= render_landmarks(@landmarks) %&gt;&lt;/div&gt; 
     2736&lt;div id=breadcrumb&gt;&lt;%= render_breadcrumb(&quot;&amp;nbsp;::&amp;nbsp;&quot;) %&gt;&lt;/div&gt; 
     2737&lt;div id=index&gt; 
     2738  &lt;div id=index_title&gt;&lt;%= @index.name %&gt;&lt;/div&gt; 
     2739  &lt;div class=index_class&gt;&lt;%= @index.class.name  %&gt; &lt;%= render_params(@index.parameters_values) %&gt;&lt;/div&gt; 
     2740  &lt;div id=index_count&gt;&lt;%= @index.entries.length %&gt; entry(s)&lt;/div&gt; 
     2741  &lt;div id=index_body&gt;&lt;%= render_index(@index) %&gt;&lt;/div&gt; 
     2742&lt;/div&gt;</sr:template> 
     2743</rdf:Description> 
     2744 
     2745<rdf:Description rdf:about="http://sr#o_c40c118b"> 
     2746        <rdf:type rdf:resource="http://sr#GenericView"/> 
     2747        <sr:name>navigation-full.rhtml</sr:name> 
     2748        <sr:template>&lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot;&gt; 
     2749&lt;html&gt; 
     2750&lt;head&gt; 
     2751&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=utf-8&quot;&gt; 
     2752&lt;title&gt;&lt;%= @page_title%&gt;&lt;/title&gt; 
     2753&lt;link href=&quot;/stylesheets/navigation.css&quot; rel=&quot;stylesheet&quot; type=&quot;text/css&quot;/&gt; 
     2754&lt;% if @content_for_style %&gt; 
     2755    &lt;style&gt;&lt;%= @content_for_style %&gt;&lt;/style&gt; 
     2756&lt;% end %&gt; 
     2757&lt;% if @content_for_script %&gt; 
     2758    &lt;script language=&quot;JavaScript&quot;&gt;&lt;%= @content_for_script %&gt;&lt;/script&gt; 
     2759&lt;% end %&gt; 
     2760&lt;script language=&quot;JavaScript&quot; type=&quot;text/javascript&quot; src=&quot;/prototype.js&quot;&gt;&lt;/script&gt; 
     2761&lt;%= @content_for_head %&gt; 
     2762&lt;/head&gt; 
     2763&lt;body&gt; 
     2764&lt;%= form_remote_tag :url =&gt; { :action =&gt; &quot;context&quot; } %&gt; 
     2765&lt;div id=&apos;__loading&apos; style=&apos;display:none;color:white;background-color:red;position:absolute&apos;&gt;Loading...&lt;/div&gt; 
     2766&lt;div id=&apos;page&apos;&gt; 
     2767  &lt;% unless RAILS_ENV == &apos;production&apos; or true # or true code disables metamodel actions %&gt;  
     2768    &lt;div id=&apos;actions&apos;&gt; 
     2769      &lt;%= render_actions %&gt; 
     2770      &amp;nbsp;&amp;nbsp;&amp;nbsp; 
     2771      &lt;%= render_user_authentication %&gt; 
     2772    &lt;/div&gt; 
     2773  &lt;% end %&gt; 
     2774  &lt;div id=&apos;content&apos;&gt;&lt;%= @content_for_layout %&gt;&lt;/div&gt; 
     2775&lt;/div&gt; 
     2776&lt;%= end_form_tag %&gt;   
     2777&lt;/body&gt; 
     2778&lt;/html&gt;</sr:template> 
     2779</rdf:Description> 
     2780 
    27102781</rdf:RDF>