public
Fork of halorgium/mephisto
Description: A mirror of the mephisto code-base
Homepage: http://mephistoblog.com/
Clone URL: git://github.com/technoweenie/mephisto.git
Click here to lend your support to: mephisto and make a donation at www.pledgie.com !
Adding quick response prototype to the overview screen.  Let me know what 
you think

git-svn-id: http://svn.techno-weenie.net/projects/mephisto/trunk@1239 
567b1171-46fb-0310-a4c9-b4bef9110e78
Caged (author)
Wed Jun 14 00:38:05 -0700 2006
commit  daa01ce01e988695617f7498362a80abeca61ba3
tree    d4d94ce9175a6758a9f76ead6a9de452ffd9cf90
parent  b1b351bd7b6de91f00d7bd0310d7acc7184afe43
...
1
2
3
4
5
...
1
 
2
3
4
0
@@ -1,5 +1,4 @@
0
 <div class="group">
0
- <h3><%= title %></h3>
0
   <dl>
0
     <dt>
0
       <%= f.label_for :data, :text => labels[:data] %>
...
5
6
7
8
9
 
10
 
 
 
 
 
 
 
11
12
...
5
6
7
 
 
8
9
10
11
12
13
14
15
16
17
18
0
@@ -5,8 +5,14 @@
0
   <span class="event-time"><%= event_time_for event, later %></span>
0
   <blockquote><p>&quot;<%= truncate strip_tags(event.body), 100 %>&quot;</p></blockquote>
0
   <span class="meta">
0
- &mdash; <%=h event.author %>
0
-
0
+ &mdash; <%=h event.author %> | <%= link_to_function 'Respond', %(Element.toggle('respond-#{event.id}')), :class => 'adds' %>
0
   </span>
0
+ <div id="respond-<%= event.id %>" style="display:none" class="response">
0
+ <blockquote><p>&quot;<%= strip_tags(event.body)%>&quot;</p></blockquote>
0
+
0
+ <textarea rows="4" cols="50">
0
+ </textarea>
0
+ <p class="btns"><%= submit_tag 'Post comment' %></p>
0
+ </div>
0
 </li>
0
 <% end -%>
...
1
 
 
 
 
 
 
 
 
2
3
4
...
6
7
8
9
 
10
11
12
...
 
1
2
3
4
5
6
7
8
9
10
11
...
13
14
15
 
16
17
18
19
0
@@ -1,4 +1,11 @@
0
-<div id="flash-notice" style="display:none"></div>
0
+<% content_for :action_nav do %>
0
+ <div id="page-nav">
0
+ <ul id="act-nav" class="clear">
0
+ <li><%= link_to "New template", :controller => 'design' %></li>
0
+ </ul>
0
+ </div>
0
+<% end %>
0
+
0
 <div id="template-container">
0
 <% form_remote_for :template, @tmpl, :url => { :action => 'update', :id => @tmpl },
0
      :html => { :id => 'template-form' } do |f| -%>
0
@@ -6,7 +13,7 @@
0
   :title => @tmpl.filename,
0
   :hint => 'You can use HTML and Liquid in your template.',
0
   :f => f,
0
- :labels => { :data => 'Template source code',
0
+ :labels => { :data => "Edit #{@tmpl.filename} source code",
0
                :filename => 'Title of your template' }
0
  } %>
0
 <p class="btns">
...
811
812
813
814
 
815
816
817
...
819
820
821
822
823
 
 
824
825
 
 
 
826
827
828
...
834
835
836
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
837
838
839
...
853
854
855
 
856
857
858
...
884
885
886
887
 
888
889
890
...
811
812
813
 
814
815
816
817
...
819
820
821
 
 
822
823
824
825
826
827
828
829
830
831
...
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
...
877
878
879
880
881
882
883
...
909
910
911
 
912
913
914
915
0
@@ -811,7 +811,7 @@ li.event-comment { background-image: url(../images/icons/commentb.gif); }
0
 li.event-article { background-image: url(../images/icons/articleb.gif); }
0
 li.event-none { background-image: url(../images/icons/minusb.gif); }
0
 
0
-.shade { background-color: #DFF4F5; }
0
+.shade { background-color: #eee; }
0
 
0
 .events li blockquote {
0
 }
0
@@ -819,10 +819,13 @@ li.event-none { background-image: url(../images/icons/minusb.gif); }
0
 .events li blockquote p {
0
   margin: 0 !important;
0
   padding: 0 !important;
0
- font-style: italic;
0
- font-size: 95%;
0
+ color: #000;
0
+ font: italic 100% "Times New Roman", serif;
0
 }
0
 
0
+.events textarea {
0
+ width: 100%;
0
+}
0
 
0
 .events .meta {
0
   display: block;
0
@@ -834,6 +837,27 @@ li.event-none { background-image: url(../images/icons/minusb.gif); }
0
   font-size: 90%;
0
 }
0
 
0
+.response {
0
+ margin: 5px 0 20px 20px;
0
+ border-left: 7px solid #333;
0
+ padding: 5px;
0
+}
0
+
0
+.response blockquote {
0
+ padding: 20px;
0
+}
0
+
0
+.response blockquote p {
0
+ font-family: "Times New Roman", serif;
0
+ font-size: 110% !important;
0
+ margin-bottom: 10px;
0
+ color: #000;
0
+}
0
+
0
+.response p.btns {
0
+ margin: 0;
0
+ background: #eee;
0
+}
0
 
0
 /*
0
  *=PAGINATION
0
@@ -853,6 +877,7 @@ li.event-none { background-image: url(../images/icons/minusb.gif); }
0
  *=MISC
0
  */
0
 
0
+a.adds { color: #017CA2;}
0
 
0
 .feed {
0
   background: url(../images/icons/feed-icon-12x12.gif) 0 50% no-repeat;
0
@@ -884,7 +909,7 @@ li.event-none { background-image: url(../images/icons/minusb.gif); }
0
 }
0
 
0
 .hint {
0
- color: #888;
0
+ color: #555;
0
   font-size: 90%;
0
 }
0
 

Comments

    No one has commented yet.