Sha256: 23c3e6a106673e4dac3679ac6b5646c1644c2792eb64f40fa1b8a87274d39ff4

Contents?: true

Size: 1.08 KB

Versions: 25

Compression:

Stored size: 1.08 KB

Contents

<%
  access = _hb.events.call(:check_page_access, {:page => :logs_latest})
  if !access
    print _("You do not have access to this page.")
    exit
  end
  
  ob = _hb.events.call(:ob)
%>

<table class="list">
  <thead>
    <tr>
      <th><%=_("ID")%></th>
      <th><%=_("Log")%></th>
      <%if ob%>
        <th><%=_("Object")%></th>
      <%end%>
    </tr>
  </thead>
  <tbody>
    <%
      logs = _hb.ob.list(:Log, {
        "orderby" => [["date_saved", "desc"]],
        "limit" => 200
      })
      
      logs.each do |log|
        %>
          <tr>
            <td>
              <a href="logs_show.rhtml?log_id=<%=log.id%>"><%=log.id%></a>
            </td>
            <td>
              <%=log.first_line%>
            </td>
            <%if ob%>
              <td>
                <%=log.objects_html(ob)%>
              </td>
            <%end%>
          </tr>
        <%
      end
      
      if logs.empty?
        %>
          <tr>
            <td class="error">
              <%=_("No logs were found.")%>
            </td>
          </tr>
        <%
      end
    %>
  </tbody>
</table>

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
hayabusa-0.0.30 pages/logs_latest.rhtml
hayabusa-0.0.28 pages/logs_latest.rhtml
hayabusa-0.0.25 pages/logs_latest.rhtml
hayabusa-0.0.24 pages/logs_latest.rhtml
hayabusa-0.0.23 pages/logs_latest.rhtml
hayabusa-0.0.22 pages/logs_latest.rhtml
hayabusa-0.0.20 pages/logs_latest.rhtml
hayabusa-0.0.19 pages/logs_latest.rhtml
hayabusa-0.0.18 pages/logs_latest.rhtml
hayabusa-0.0.17 pages/logs_latest.rhtml
hayabusa-0.0.16 pages/logs_latest.rhtml
hayabusa-0.0.15 pages/logs_latest.rhtml
hayabusa-0.0.14 pages/logs_latest.rhtml
hayabusa-0.0.13 pages/logs_latest.rhtml
hayabusa-0.0.12 pages/logs_latest.rhtml
hayabusa-0.0.11 pages/logs_latest.rhtml
hayabusa-0.0.10 pages/logs_latest.rhtml
hayabusa-0.0.9 pages/logs_latest.rhtml
hayabusa-0.0.8 pages/logs_latest.rhtml
hayabusa-0.0.6 pages/logs_latest.rhtml