Commit 3b3be02b75a198c2021739b5b8d0166e467f5cf5

Authored by Victor Costa
1 parent cfcda5a4

community_hub: remove rhtml

plugins/community_hub/views/content_viewer/hub.html.erb 0 → 100644
... ... @@ -0,0 +1,96 @@
  1 +<% extend CommunityHubPlugin::HubHelper %>
  2 +
  3 +<div id="<%=@page.id%>" class="hub">
  4 +
  5 + <div class="title"><%= @page.title %> HUB</div>
  6 +
  7 + <div class="description"><%= @page.body %></div>
  8 +
  9 + <br />
  10 +
  11 + <div id="left-tab" class="live content-tab show">
  12 +
  13 + <h1 class="live">
  14 + <span class="on-air"><%= _("Live") %></span>
  15 + </h1>
  16 +
  17 + <h1 class="mediation">
  18 + <span class="title"><%= _("Mediation") %></span>
  19 + </h1>
  20 +
  21 + <div class="envelope">
  22 + <ul id="live-posts"></ul>
  23 + </div>
  24 +
  25 + <span><%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %></span>
  26 +
  27 + <% if logged_in? %>
  28 + <div id="input-panel">
  29 + <div class="form-message">
  30 +
  31 + <%= form_for :message,
  32 + :method => 'post',
  33 + :url => {
  34 + :controller => 'community_hub_plugin_public',
  35 + :action => 'new_message',
  36 + :article_id => @page.id
  37 + } do |f| %>
  38 + <span><%= _("Streaming") %></span>
  39 + <br />
  40 + <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %>
  41 + <%= submit_button('add', _('Post'), :onclick => 'new_message(this); return false;') %>
  42 + <% end %>
  43 +
  44 + </div>
  45 + </div>
  46 + <% end %>
  47 +
  48 + </div>
  49 +
  50 + <div id="right-tab" class="mediation content-tab hide">
  51 +
  52 + <h1 class="live">
  53 + <span class="on-air"><%= _("Live") %></span>
  54 + </h1>
  55 +
  56 + <h1 class="mediation">
  57 + <span class="title"><%= _("Mediation") %></span>
  58 + </h1>
  59 +
  60 + <div class="envelope">
  61 + <ul id="mediation-posts"></ul>
  62 + </div>
  63 +
  64 + <% if logged_in? && mediator?(@page) %>
  65 + <div class="form-mediation">
  66 +
  67 + <%= render :file => 'shared/tiny_mce' %>
  68 +
  69 + <%= form_for :article,
  70 + :method => 'post',
  71 + :url => {
  72 + :controller => 'community_hub_plugin_public',
  73 + :action => 'new_mediation',
  74 + :profile_id => profile.id
  75 + } do |f| %>
  76 + <%= f.hidden_field :parent_id, :value => @page.id %>
  77 + <%= f.text_area :body, :style => "width: 100%;", :class => "mceEditor" %>
  78 + <%= submit_button('add', _('Post'), :onclick => 'new_mediation(this); return false;') %>
  79 + <% end %>
  80 +
  81 + </div>
  82 +
  83 + <%= render :partial => "community_hub_plugin_public/settings" %>
  84 +
  85 + <% end %>
  86 +
  87 + </div>
  88 +
  89 +</div>
  90 +
  91 +<script type="text/javascript">
  92 + DEFAULT_PIN_QUESTION = '<%= _("Are you sure that you want to pin this message?") %>';
  93 + DEFAULT_PROMOTE_QUESTION = '<%= _("Are you sure that you want to promote this user?") %>';
  94 +</script>
  95 +
  96 +<%= javascript_include_tag '/plugins/community_hub/javascripts/community_hub.js' %>
... ...
plugins/community_hub/views/content_viewer/hub.rhtml
... ... @@ -1,96 +0,0 @@
1   -<% extend CommunityHubPlugin::HubHelper %>
2   -
3   -<div id="<%=@page.id%>" class="hub">
4   -
5   - <div class="title"><%= @page.title %> HUB</div>
6   -
7   - <div class="description"><%= @page.body %></div>
8   -
9   - <br />
10   -
11   - <div id="left-tab" class="live content-tab show">
12   -
13   - <h1 class="live">
14   - <span class="on-air"><%= _("Live") %></span>
15   - </h1>
16   -
17   - <h1 class="mediation">
18   - <span class="title"><%= _("Mediation") %></span>
19   - </h1>
20   -
21   - <div class="envelope">
22   - <ul id="live-posts"></ul>
23   - </div>
24   -
25   - <span><%= check_box_tag 'auto_scrolling', 'yes', true %><%= _("Auto scrolling") %></span>
26   -
27   - <% if logged_in? %>
28   - <div id="input-panel">
29   - <div class="form-message">
30   -
31   - <%= form_for :message,
32   - :method => 'post',
33   - :url => {
34   - :controller => 'community_hub_plugin_public',
35   - :action => 'new_message',
36   - :article_id => @page.id
37   - } do |f| %>
38   - <span><%= _("Streaming") %></span>
39   - <br />
40   - <%= f.text_area :body, :style => "width: 99%;", :cols => "38", :rows => "5", :placeholder => _("Type your message here") %>
41   - <%= submit_button('add', _('Post'), :onclick => 'new_message(this); return false;') %>
42   - <% end %>
43   -
44   - </div>
45   - </div>
46   - <% end %>
47   -
48   - </div>
49   -
50   - <div id="right-tab" class="mediation content-tab hide">
51   -
52   - <h1 class="live">
53   - <span class="on-air"><%= _("Live") %></span>
54   - </h1>
55   -
56   - <h1 class="mediation">
57   - <span class="title"><%= _("Mediation") %></span>
58   - </h1>
59   -
60   - <div class="envelope">
61   - <ul id="mediation-posts"></ul>
62   - </div>
63   -
64   - <% if logged_in? && mediator?(@page) %>
65   - <div class="form-mediation">
66   -
67   - <%= render :file => 'shared/tiny_mce' %>
68   -
69   - <%= form_for :article,
70   - :method => 'post',
71   - :url => {
72   - :controller => 'community_hub_plugin_public',
73   - :action => 'new_mediation',
74   - :profile_id => profile.id
75   - } do |f| %>
76   - <%= f.hidden_field :parent_id, :value => @page.id %>
77   - <%= f.text_area :body, :style => "width: 100%;", :class => "mceEditor" %>
78   - <%= submit_button('add', _('Post'), :onclick => 'new_mediation(this); return false;') %>
79   - <% end %>
80   -
81   - </div>
82   -
83   - <%= render :partial => "community_hub_plugin_public/settings" %>
84   -
85   - <% end %>
86   -
87   - </div>
88   -
89   -</div>
90   -
91   -<script type="text/javascript">
92   - DEFAULT_PIN_QUESTION = '<%= _("Are you sure that you want to pin this message?") %>';
93   - DEFAULT_PROMOTE_QUESTION = '<%= _("Are you sure that you want to promote this user?") %>';
94   -</script>
95   -
96   -<%= javascript_include_tag '/plugins/community_hub/javascripts/community_hub.js' %>