class Object

Constants

EURO_IMAGE
GREEN_SQUARE
MARGIN_RIGHT
S_CHAOS
S_DARKGOLDENROD

Public Instance Methods

discarded_on_this_day(i = nil) click to toggle source
#

discarded_on_this_day

#
# File lib/hardware_information/www/my_hardware.rb, line 124
def discarded_on_this_day(i = nil)
  if i
    s2 sg(:rip,'marr8px').dup+
       '<span class="cyan">Entsorgt am: </span>','padl2_5em'
    s2 i.to_s, 'BO green'
  end
end
display_the_total_costs( i = HardwareInformation::PurchasedHardware.total_cost? ) click to toggle source
#

display_the_total_costs

This method will show the sum of the total purchase cost; the module PurchasedHardware will keep track of this, so here we only display that value.

#
# File lib/hardware_information/www/my_hardware.rb, line 248
def display_the_total_costs(
    i = HardwareInformation::PurchasedHardware.total_cost?
  )
  i = i.to_f
  # ========================================================================= #
  # === REGISTRIERTE GESAMTKOSTEN
  # ========================================================================= #
  div('mart1em s1em') {
    e sg(:dot102, 'marr8px')+
      '<b class="marl0_3em bigger"> Registrierte Gesamtkosten:</b> '
    br
    s2 i.round(3).to_s,
       'yel marl2em BOLD bigger'
    s2 ' ('+(i * 13.7603).round(2).to_s+' Schilling)','teal'
    s2 EURO_IMAGE+
       ' <b>Euro</b> <span class="smaller">(seit 27.05.2004)</span>'
    br
    br
  }
end
show_local_sitemap() click to toggle source
#

show_local_sitemap

#
# File lib/hardware_information/www/my_hardware.rb, line 93
def show_local_sitemap
  h2 'Sitemap','yel martb1px'
  p('marr1em FS1em mart0_1em'){
    sitemap_link '#Laptop1_Fujitsu_Siemens_Computers',
                 'Laptop FSC Amilo Pro V2030'
    sitemap_link '#USB_Netgear_108_WG111T',
                 'USB Netgear 108 WG111T Sticks '
    sitemap_link '#Maxtor_OneTouch_III_750',
                 'Maxtor External USB HDD 750 GIG'
    sitemap_link '#Imation_clip_Flash_Drive',
                 'Imitation 4 GIG USB Stick'
    sitemap_link '#Buffalo_Wireless_G_125',
                 'Buffalo Wireless Router'
    sitemap_link '#computer3',
                 'Rechner Computer3' # Mit K8M890
    sitemap_link '#Rechner_Miraculix_mit_xxxxx',
                 'Rechner Miraculix'
    sitemap_link '#Benq_G2000WA_LCD_Monitor',
                 'Benq LCD Monitor'
    sitemap_link '#Pinnacle_PCTV_Hybrid_Pro',
                 'Pinnacle PCTV Hybrid Pro Stick 330E'
    sitemap_link '#LCD_TV_19LG3000',
                 'LCD TV 19LG3000'
    sitemap_link '#FREECOM_EXTERNAL_HARD_DRIVE_3TB',
                 'FREECOM_EXTERNAL_HARD_DRIVE_3TB'
  }
end