forked from rubytaiwan/ruby-taiwan
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
85 additions
and
66 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 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 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 |
---|---|---|
@@ -1,40 +1,23 @@ | ||
<%= render "base" %> | ||
|
||
<div class="sidebar"> | ||
<%= render "sidebar_for_topic_index" if action_name == "index" %> | ||
<%= render "sidebar_for_topic_recent" if action_name == "recent" %> | ||
<%= render "sidebar_for_topic_node" if action_name == "node" %> | ||
<%= render "sidebar_for_topic_index" %> | ||
</div> | ||
|
||
<div class="content"> | ||
<div class="box"> | ||
<div id="node_info"> | ||
<%= render "node_info", :node => @node %> | ||
</div> | ||
|
||
<div class="topics"> | ||
<%= render :partial => "topics/topic", :collection => @topics %> | ||
<%= render :partial => "topics/topic", :collection => @topics, :as => :topic %> | ||
</div> | ||
|
||
<% if action_name == "index" %> | ||
<div class="more"> | ||
<%= link_to(t("topics.check_recent_topics"), recent_topics_path)%> | ||
</div> | ||
<% else %> | ||
<%= will_paginate @topics %> | ||
<% end %> | ||
<div class="more"> | ||
<%= link_to(t("topics.check_recent_topics"), recent_topics_path)%> | ||
</div> | ||
|
||
<% if action_name == "index" %> | ||
<%= render_cell :topics, :index_sections %> | ||
<%= render_cell :topics, :index_locations %> | ||
<% end %> | ||
<% if !@node.blank? %> | ||
<% content_for :node_feed_link do %> | ||
<%= auto_discovery_link_tag(:rss, feed_node_topics_url, :title => "#{@node.name}節點最新話題") %> | ||
<% end %> | ||
<% end %> | ||
</div> | ||
|
||
<%= render_cell :topics, :index_sections %> | ||
<%= render_cell :topics, :index_locations %> | ||
|
||
</div> | ||
|
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 |
---|---|---|
@@ -1,12 +1,12 @@ | ||
<%= render 'base' %> | ||
<%= render "base" %> | ||
<% content_for :sitemap do %> | ||
<li class="active">新建贴子</li> | ||
<% end %> | ||
<%= render 'sidebar_for_new_topic' %> | ||
<%= render "sidebar_for_new_topic" %> | ||
|
||
<div class="content"> | ||
<div class="box"> | ||
<%= render 'form' %> | ||
<%= render "form" %> | ||
</div> | ||
</div> |
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,24 @@ | ||
<%= render "base" %> | ||
|
||
<div class="sidebar"> | ||
<%= render "sidebar_for_topic_node" %> | ||
</div> | ||
|
||
<div class="content"> | ||
<div class="box"> | ||
<div id="node_info"> | ||
<%= render "node_info", :node => @node %> | ||
</div> | ||
|
||
<div class="topics"> | ||
<%= render :partial => "topics/topic", :collection => @topics, :as => :topic %> | ||
</div> | ||
<%= will_paginate @topics %> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<% content_for :node_feed_link do %> | ||
<%= auto_discovery_link_tag(:rss, feed_node_topics_url, :title => "#{@node.name}節點最新話題") %> | ||
<% end %> |
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,20 @@ | ||
<%= render "base" %> | ||
|
||
<div class="sidebar"> | ||
<%= render "sidebar_for_topic_recent" %> | ||
</div> | ||
|
||
<div class="content"> | ||
<div class="box"> | ||
<div id="node_info"> | ||
<%= render "node_info", :node => @node %> | ||
</div> | ||
|
||
<div class="topics"> | ||
<%= render :partial => "topics/topic", :collection => @topics, :as => :topic %> | ||
</div> | ||
|
||
<%= will_paginate @topics %> | ||
|
||
</div> | ||
|
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