⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 _resources.rhtml

📁 用ruby on rails写的一个博客程序,还不错..ruby on rails的确是个好框架
💻 RHTML
字号:
<table cellspacing="1" cellpadding="0"><tr>  <th><%= _("Filename")%> <small>(right-click for link)</small></th>  <th><%= _("Content Type")%></th>  <th><%= _("MetaData")%></th>  <th><%= _("File Size")%></th>  <th><%= _("Uploaded")%></th>  <th><%= _("Delete")%></th></tr><% blog_root = request.relative_url_root -%><% for upload in resources -%><tr <%= alternate_class -%>>  <td><%= link_to "#{blog_root}/files/#{upload.filename}", "#{blog_root}/files/#{upload.filename}" -%></td>  <td>    <%= task_edit_resource_mime(upload.mime, upload.id) %>    <div id="edit-resource-mime-<%= upload.id %>" style="display:none;position:absolute;">      <%= render :partial => "mime_edit", :locals => {:id => upload.id, :mime => upload.mime} %>    </div>  </td>  <% if upload.itunes_metadata? %>  <td>    <%= task_edit_resource_metadata(_("Edit MetaData") + ' (+/-)', upload.id) %>    <div id="edit-resource-metadata-<%= upload.id%>" style="display:none;position:absolute;">      <%= render :partial => "metadata_edit" , :locals => {:id => upload.id, :resource => upload}%>    </div>  </td>  <% else -%>  <td>    <%= task_add_resource_metadata(_("Add MetaData") + ' (+/-)', upload.id) %>    <div id="add-resource-metadata-<%= upload.id%>" style="display:none;position:absolute;">      <%= render :partial => "metadata_add", :locals => {:id => upload.id} %>    </div>  </td>  <% end -%>  <td><%=h upload.size rescue 0 -%> bytes</td>  <td><%=h upload.created_at.strftime('%Y-%m-%d %H:%M:%S') -%></td>  <td class="operation"><%= link_to_destroy upload -%></td>    </tr>  <% end -%></table>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -