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
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
external_link( remote, name, optional_use_this_id = nil )
click to toggle source
#¶ ↑
external_link
¶ ↑
This method is used in particular by the trailing part of the webpage, to display the remote links.
#¶ ↑
# File lib/hardware_information/www/my_hardware.rb, line 76 def external_link( remote, name, optional_use_this_id = nil ) br abr( remote, content: S_CHAOS+name, # This is actually the green dot. css_class: 's1em', id: optional_use_this_id ) end
show_external_links()
click to toggle source
#¶ ↑
show_external_links
¶ ↑
This method will display all external links.
#¶ ↑
# File lib/hardware_information/www/my_hardware.rb, line 153 def show_external_links # ========================================================================= # # LINKS ZU HARDWARE # ========================================================================= # div(HardwareInformation::PurchasedHardware::MAIN_DIV+' float_container', '', 'margin-left: 1em; margin-right: 1em; border:1px ridge lightblue; min-height: 500px'){ h2 sg(:big_star,'marr5px','drag_the_big_star')+ 'Links', 'marl0_5em mart10px mar2px pad4px darkkhaki marb1em' # ========================================================================= # # Add the CSS rules for the following side-by-sid divs next: # ========================================================================= # add_this_css_style ' .float_container { padding: 10px; margin-left: 1em; margin-right: 1em; } .float_child { width: 43%; float: left; padding: 20px; margin: 5px; min-height: 320px; border: 1px dotted gold; margin-left: 0.5em; margin-right: 0.5em; } ' div('float_child') { div('mar0px pad0px') { external_link 'https://www.motherboards.org/', 'Motherboards' external_link 'https://kmuto.jp/debian/hcl/index.cgi', 'Debian Hardware Page' external_link 'https://geizhals.at/?m=1', 'Geizhals' external_link 'https://www.hardwareschrott.de/', 'Hardware Schrott','Hardware_Schrott' external_link 'https://www.rudiratz.de/index.php?m=2', 'Computer Lexikon' external_link 'https://www.alleseineuro.de/article_info.php/articles_id/1', 'Richtiges Löten' external_link 'https://www.tomshardware.com/', 'Toms Hardware Tips' external_link 'https://www.pcmasters.de/', 'Hardware News' external_link 'https://de.wikipedia.org/wiki/Liste_der_BIOS-Signalt%C3%B6ne', 'Biep Fehlercodes (Wikipedia)' external_link 'https://www.website-go.com/artikel/beepcodes.php', 'Gute Biep Fehlercodes mit Hilfestellung' external_link 'https://www.website-go.com/artikel/beepcodes.php', 'Deutschprachige Biep Fehlercodes' external_link 'https://www.alltests.de/index.php?sel=php/news/shortnews.php', 'Gute Hardware Tips' external_link 'https://www.digiwelt.at/officewelt-at/cf/frameset.cfm?bid=D3D9446802A44259755D38E6D163E820&fuseaction=Artikel.detail&artikel_id=1468', 'Hardware bei InterSpar' } } div('float_child') { div('mar0px pad0px') { external_link :local_hardware_assembly, 'Lokaler Link zu Hardware Assembly' external_link :wlan, 'Lokaler Link zu WLAN' external_link :local_ram, 'Lokaler Link zu RAM' external_link :local_scanner, 'Lokaler Link zu SCANNERS' external_link :local_sitemap, 'Lokaler Link zur SITEMAP' external_link :local_kabel, 'Lokaler Link zu KABEL und ADAPTOREN' external_link :local_computersystem, 'Lokaler Link zu Computersystemen' external_link :local_waschmaschinen, 'Lokaler Link zu Waschmaschinen' } } } 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
sitemap_link(intralink, desc)
click to toggle source