-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reverting HAML stuff, keeping the code around to add it back one day
git-svn-id: http://svn.typosphere.org/typo/trunk@1374 820eb932-12ee-0310-9ca8-eeb645f39767
- Loading branch information
Frédéric de Villamil
committed
Feb 19, 2007
1 parent
852d867
commit 9f6fb53
Showing
307 changed files
with
495 additions
and
8,756 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<h4><%= @article[:title] %></h4> | ||
|
||
<%= @article.html %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<h2><%= link_to_permalink article,article.title %></h2> | ||
<p class="auth">Posted by <%= author_link(article) %> | ||
<%= js_distance_of_time_in_words_to_now article.published_at %></p> | ||
<%= html article, :body %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<li id="comment-<%= comment.id %>" <%= 'class="author_comment"' if comment.user %> <%= 'style="display:none"' if controller.request.xhr? %><%= onhover_show_admin_tools(:comment, comment.id) %>> | ||
<%= admin_tools_for comment %> | ||
<a name="comment-<%= comment.id %>"></a> | ||
<%= gravatar_tag(comment.email) if this_blog.use_gravatar and comment.email %> | ||
<cite><strong><%= link_to_unless(comment.url.blank?, h(comment.author), comment.url) %></strong> </cite> said <%= distance_of_time_in_words comment.article.published_at, comment.created_at %> later:<br /> | ||
<%= comment.generate_html(:body) %> | ||
<% unless comment.published -%> | ||
<div class="spamwarning">This comment has been flagged for moderator approval. It won't appear on this blog until the author approves it.</div> | ||
<% end -%> | ||
</li> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<%= form_remote_tag :url => {:action => "comment", :id => @article}, | ||
:position=> :bottom, | ||
:update => {:success => 'commentList'}, | ||
:loading => "loading()", | ||
:complete => "complete(request)", | ||
:failure => "failure(request)", | ||
:html => {:id=>"commentform",:class=>"commentform"} %> | ||
|
||
|
||
<div class="comment-box"> | ||
<div id="errors"></div> | ||
<div id="preview" style="display: none"></div> | ||
|
||
<a name="respond"></a> | ||
<table cellpadding="4" cellspacing="0" class="frm-tbl"> | ||
<tr> | ||
<td><p><label for="comment_author">Your name</label></p></td> | ||
<td> <%= text_field "comment", "author", :size => 20 %> <small><%= link_to_function("(leave url/email »)", "Element.toggle('guest_url'); Element.toggle('guest_email')") %></small></td> | ||
</tr> | ||
<tr id="guest_url" style="display:none;"> | ||
<td><p><label for="comment_url">Your blog</label></p></td> | ||
<td> <%= text_field "comment", "url" %></td> | ||
</tr> | ||
<tr id="guest_email" style="display:none;"> | ||
<td><p><label for="comment_email">Your email</label></p></td> | ||
<td> <%= text_field "comment", "email" %></td> | ||
</tr> | ||
<tr> | ||
<td><p><label for="comment_body">Your message</label></p></td> | ||
<td valign="top" colspan="2"> | ||
<%= text_area "comment", "body" %> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td colspan="2" id="frm-btns"> | ||
<span id="comment_loading" style="display:none;"><%= image_tag "spinner.gif" %></span> | ||
<%= markup_help_popup TextFilter.find_by_name(this_blog.comment_text_filter), "Comment Markup Help" %> | ||
<a href="#" onclick="new Ajax.Updater('preview', '<%= url_for :action => 'comment_preview' %>', {asynchronous:true, evalScripts:true, parameters:Form.serialize('commentform'), onComplete:function(request){Element.show('preview')}}); return false;">Preview comment</a> | ||
<input type="submit" name="submit" id="form-submit-button" value="submit" class="button" /> | ||
</td> | ||
</tr> | ||
</table> | ||
</div> | ||
<%= end_form_tag %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<%= error_messages_for("comment") %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<li id="trackback-<%= trackback.id %>"<%= onhover_show_admin_tools(:trackback, trackback.id) %>> | ||
<%= admin_tools_for trackback %> | ||
<a name="trackback-<%= trackback.id %>"></a> | ||
From <strong><%= trackback.blog_name %></strong><br /> | ||
<a href="<%= trackback.url %>" rel="nofollow"><%=h trackback.title %></a><br/> | ||
<%= trackback.excerpt %> | ||
</li> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<% if @articles.to_a.empty? -%> | ||
<div class="post"> | ||
<p>No articles found...</p> | ||
</div> | ||
<% else | ||
currentmonth = 0 | ||
currentyear = 0 | ||
for article in @articles | ||
if (article.published_at.month != currentmonth || article.published_at.year != currentyear) | ||
currentmonth = article.published_at.month | ||
currentyear = article.published_at.year -%> | ||
<h3 class="archivemonth"><%= Date::MONTHNAMES[article.published_at.month] %> <%= article.published_at.year %></h3> | ||
<% end -%> | ||
<div class="archivepost"> | ||
<%= article.published_at.mday %> - | ||
<%= link_to_permalink(article,h(article.title)) %> | ||
<% if !article.categories.empty? %> posted in | ||
<%= article.categories.collect {|c| link_to_permalink c,c.name }.join(", ") -%> | ||
<% end -%> | ||
</div> | ||
<% end | ||
end -%> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<%= gravatar_tag(@comment.email) if this_blog.use_gravatar and @comment.email %> | ||
<cite><strong><%=h @comment[:author] %></strong></cite> is about to say:<br /> | ||
<%= @comment.html %> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="post"> | ||
<p><%= @message %></p> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div class="entry"> | ||
<% unless @groupings.empty? -%> | ||
<% max_counter = @groupings[0].article_counter -%> | ||
<%= ul_tag_for @grouping_class %> | ||
<% for grp in @groupings.sort_by{|grp|grp.display_name} -%> | ||
<li class="<%= calc_distributed_class(grp.article_counter, max_counter, @grouping_class, 0, 10) %>"> | ||
<%= link_to_grouping(grp) %> | ||
</li> | ||
<% end -%> | ||
</ul> | ||
<% else -%> | ||
<p>There are <%= @grouping_class.to_s.underscore.pluralize %>.</p> | ||
<% end -%> | ||
</div> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<% for article in @articles -%> | ||
<div class="post"> | ||
<%= render_partial "article", article %> | ||
<%= link_to_permalink article,"Read more..." if article.extended? %> | ||
<p class="meta"><%= article_links article %></p> | ||
</div> | ||
<% end -%> | ||
<% unless @pages.item_count <= this_blog.limit_article_display %> | ||
<p id="pagination">Older posts: <%= pagination_links @pages, :params => { :action => @controller.action_name } %></p> | ||
<% end -%> |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.