Sha256: 7230ba76276cfe33374dadee553c61b114d03dc72c66f7ab7ba69790e3f29956
Contents?: true
Size: 727 Bytes
Versions: 3
Compression:
Stored size: 727 Bytes
Contents
# -*- coding: utf-8 -*- # # @file # @brief # @author ongaeshi # @date 2013/05/04 module Milkode class InfoHome attr_reader :record_content attr_reader :summary_content def initialize packages = Database.instance.packages(nil) @summary_content = <<EOF <table class="table-striped table-bordered table-condensed"> <tr><td>パッケージ数</td><td align="right">#{packages.size}</td></tr> <tr><td>ファイル数</td><td align="right">#{Database.instance.totalRecords}</td></tr> </table> EOF @record_content = packages.map do |name| "<dt class='result-file'><img src='/images/info.png' /><a href='/info/#{name}'>#{name}</a></dt>" end.join("\n") end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
milkode-1.0.2 | lib/milkode/cdweb/lib/info_home.rb |
milkode-1.0.0 | lib/milkode/cdweb/lib/info_home.rb |
milkode-0.9.9.9 | lib/milkode/cdweb/lib/info_home.rb |