chapter.erb
来自「用ruby on rails写的一个博客程序,还不错..ruby on rail」· ERB 代码 · 共 39 行
ERB
39 行
<div class="top"><div class="prevnext"> <% if previous_chapter %> <a href="chapter-<%= previous_chapter.index %>.html">Previous (<%= previous_chapter.index %>. <%= previous_chapter.title %>)</a> | <% end %> <a href="index.html">Up</a> <% if next_chapter %> | <a href="chapter-<%= next_chapter.index %>.html">Next (<%= next_chapter.index %>. <%= next_chapter.title %>)</a> <% end %></div></div><h1><%= object.index %>. <%= object.title %></h1><% object.sections.each do |section| if section.title %> <h2> <a name="s<%= section.index %>"></a> <%= object.index %>.<%= section.index %>. <%= section.title %> </h2> <% end %> <div class="section"> <%= section.content.to_html %> </div><% end %><div class="bottom"><div class="prevnext"> <% if previous_chapter %> <a href="chapter-<%= previous_chapter.index %>.html">Previous (<%= previous_chapter.index %>. <%= previous_chapter.title %>)</a> | <% end %> <a href="index.html">Up</a> <% if next_chapter %> | <a href="chapter-<%= next_chapter.index %>.html">Next (<%= next_chapter.index %>. <%= next_chapter.title %>)</a> <% end %></div></div>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?