Morten Brix Pedersen 24 лет назад
Родитель
Сommit
03b45cb046
3 измененных файлов с 8 добавлено и 1 удалено
  1. 3 0
      docs/CONFIG-README
  2. 1 0
      modules/Pisg.pm
  3. 4 1
      modules/Pisg/HTMLGenerator.pm

+ 3 - 0
docs/CONFIG-README

@@ -146,6 +146,9 @@ show_bignumbers     1 or 0, enable/disable 'Big Numbers' and 'Other
                     interesting numbers'.
                     interesting numbers'.
                     (default: 1)
                     (default: 1)
 
 
+show_topics         1 or 0, enable/disable 'Latest topics'.
+                    (default: 1)
+
 show_wpl            1 or 0, this enables pisg to show 'words per line' for
 show_wpl            1 or 0, this enables pisg to show 'words per line' for
                     each person in 'most active nicks'
                     each person in 'most active nicks'
                     (default: 0)
                     (default: 0)

+ 1 - 0
modules/Pisg.pm

@@ -141,6 +141,7 @@ sub get_default_config_settings
 
 
         show_activetimes => 1,
         show_activetimes => 1,
         show_bignumbers => 1,
         show_bignumbers => 1,
+        show_topics => 1,
         show_linetime => 0,
         show_linetime => 0,
         show_time => 1,
         show_time => 1,
         show_words => 0,
         show_words => 0,

+ 4 - 1
modules/Pisg/HTMLGenerator.pm

@@ -105,7 +105,10 @@ sub create_html
 
 
     $self->_headline($self->_template_text('latesttopic'));
     $self->_headline($self->_template_text('latesttopic'));
     _html("<table width=\"$self->{cfg}->{tablewidth}\">\n"); # Needed for sections
     _html("<table width=\"$self->{cfg}->{tablewidth}\">\n"); # Needed for sections
-    $self->_lasttopics();
+
+    $self->_lasttopics()
+        if ($self->{cfg}->{show_topics});
+
     _html("</table>"); # Needed for sections
     _html("</table>"); # Needed for sections
 
 
     my %hash = ( lines => $self->{stats}->{totallines} );
     my %hash = ( lines => $self->{stats}->{totallines} );