Class: SiSU_Proj_HTML::Bits

Inherits:
Object
  • Object
show all
Includes:
SiSU_Parts_HTML
Defined in:
lib/sisu/html_parts.rb

Overview

require_relative ‘css’ # css.rb

include SiSU_Style

Direct Known Subclasses

SiSU_Proj_XML::Bits

Instance Method Summary collapse

Methods included from SiSU_Parts_HTML

#_url_path_image_base, #band1, #band2, #banner_band, #black, #blue_ink, #blue_tinge, #css, #grey, #grey_medium, #grey_pale, #home_button_only, #ico, #instrument_cover_band_scr, #instrument_cover_band_seg, #num, #num_css, #numless, #paragraph_font_small, #paragraph_font_tiny, #png_home, #png_home_button, #set_color, #set_face, #set_fonts, #set_size_endnote, #set_small, #set_tiny, #table1, #table2, #table_txt, #table_txt_r, #the_banner, #the_color, #the_font, #the_line_break, #the_margin, #the_nav, #the_png, #the_table_cellpad_box, #the_table_close, #the_url_decoration, #the_width, #txt_0, #txt_1, #txt_2, #txt_3, #txt_close, #txt_concordance, #txt_doc_link, #txt_homepage, #txt_manifest, #txt_open, #txt_toc_link, #white, #xml_close, #xml_open, #yellow_light

Methods included from SiSU_Parts_Generic

#footer_signature, #home, #home_txt, #i_choice, #i_home_button, #i_ico, #i_new, #rl_root, #root_http, #sisu, #sisu_txt, #sisudoc, #site, #the_icon, #the_text, #the_url, #txt_home, #txt_hp, #txt_hp_alias, #txt_signature, #urify, #url_close, #url_open

Constructor Details

#initializeBits

Returns a new instance of Bits.



288
289
290
291
292
# File 'lib/sisu/html_parts.rb', line 288

def initialize
  @v=SiSU_Env::InfoVersion.instance.get_version
  #@dir=SiSU_Env::InfoEnv.new
  #@date=SiSU_Env::InfoDate.new #{@date.year}
end

Instance Method Details

#credits_sisuObject



320
321
322
323
324
325
326
327
# File 'lib/sisu/html_parts.rb', line 320

def credits_sisu
  %{<div class="substance">
<table summary="SiSU summary" cellpadding="4" border="0">
<tr><td>
  #{widget_sisu}
</table></div>}
  ''
end

#credits_sisu_manifestObject



308
309
310
# File 'lib/sisu/html_parts.rb', line 308

def credits_sisu_manifest
  widget_sisu_text
end

#txt_generatorObject

@dir=SiSU_Env::InfoEnv.new @date=SiSU_Env::InfoDate.new #SiSU_Proj_HTML::Bits.@[email protected]



293
294
295
296
# File 'lib/sisu/html_parts.rb', line 293

def txt_generator
  %{  <meta name="generator" content="#{@v.project} #{@v.version} of #{@v.date_stamp} (#{@v.date}) (n*x and Ruby!)" />
<link rel="generator" href="http://www.sisudoc.org/" />}
end

#widget_promoObject

Array used to build promo from list.yml and promo.yml



328
329
330
# File 'lib/sisu/html_parts.rb', line 328

def widget_promo # Array used to build promo from list.yml and promo.yml
#  ['sisu_icon','sisu','sisu_search_libre','open_society','fsf','ruby']
end

#widget_sisuObject



311
312
313
314
315
316
317
318
319
# File 'lib/sisu/html_parts.rb', line 311

def widget_sisu
<<WOK
<!-- widget sisu -->
<tr><td valign="top" width="100%">
<!-- SiSU Rights -->
#{widget_sisu_text}
</td></tr>
WOK
end

#widget_sisu_textObject



297
298
299
300
301
302
303
304
305
306
307
# File 'lib/sisu/html_parts.rb', line 297

def widget_sisu_text
<<WOK
  <p class="tiny"><font color="#666666" size="2">
Output generated by
<a href="#{the_url.sisu}">
  #{@v.project}
</a>
#{@v.version} #{@v.date} (#{@v.date_stamp})
  </font></p>
WOK
end