combine ticket notification scrips, #15353
[freeside.git] / httemplate / elements / dashboard-toplist.html
index b0ee8c8..72f596f 100644 (file)
@@ -1,6 +1,6 @@
 % if ( $conf->exists('dashboard-toplist') ) {
 
-  <% include('/elements/table-grid.html') %>
+  <& /elements/table-grid.html &>
 
 % my $bgcolor1 = '#eeeeee';
 %     my $bgcolor2 = '#ffffff';
          <TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
            <A HREF="view/cust_main.cgi?<% $custnum %>"><% $cust_main->name %></A>
          </TD>
+          <TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
+            <& /elements/mcp_lint.html, 'cust_main'=>$cust_main &>
+          </TD>
+         <TD CLASS="grid" BGCOLOR="<% $bgcolor %>" ALIGN="right">
+           <FONT SIZE="-1">
+            <A HREF="<% FS::TicketSystem->href_new_ticket($cust_main) %>"><% mt('(new ticket)') |h %></A>
+            </FONT>
+         </TD>
+
 %         foreach my $priority ( @custom_priorities, '' ) {
 %           my $num =
 %             FS::TicketSystem->num_customer_tickets($custnum,$priority);
@@ -42,7 +51,7 @@
 
         <TR>
           <TD CLASS="grid" BGCOLOR="<% $bgcolor %>">
-           Unknown customer number <% $custnum %>
+           <% mt("Unknown customer number [_1]", $custnum) |h %> 
          </TD>
         </TR>
 
@@ -51,7 +60,7 @@
 %   } elsif ( $line =~ /^\-\-+$/ ) { #divider
 %     
       <TR>
-        <TH CLASS="grid" COLSPAN="<% scalar(@custom_priorities) + 2 %>"></TH>
+        <TH CLASS="grid" COLSPAN="<% scalar(@custom_priorities) + 4 %>"></TH>
       </TR>
 
 %     next;
 %   } elsif ( $line =~ /^\s*$/ ) {
 
       <TR>
-        <TD CLASS="grid" COLSPAN="<% scalar(@custom_priorities) + 2 %>" BGCOLOR="<% $bgcolor %>">&nbsp;</TD>
+        <TD CLASS="grid" COLSPAN="<% scalar(@custom_priorities) + 4 %>" BGCOLOR="<% $bgcolor %>">&nbsp;</TD>
       </TR>
 
-%   } elsif ( $line =~ /^\S/ { #label line
+%   } elsif ( $line =~ /^\S/ { #label line
 
       <TR>
         <TH CLASS="grid" BGCOLOR="#cccccc"><% $line %></TH>
+       <TH CLASS="grid" BGCOLOR="#cccccc"><% mt('Lint') |h %></TH>
+       <TH CLASS="grid" BGCOLOR="#cccccc"></TH>
 %       foreach my $priority ( @custom_priorities, '' ) {
           <TH CLASS="grid" BGCOLOR="#cccccc">
            <% $priority || '<i>(none)</i>'%>
@@ -76,7 +87,7 @@
 %   } else { #regular line
 
       <TR>
-        <TD CLASS="grid"  COLSPAN="<% scalar(@custom_priorities) + 2 %>" BGCOLOR="<% $bgcolor %>"><% $line %></TD>
+        <TD CLASS="grid"  COLSPAN="<% scalar(@custom_priorities) + 4 %>" BGCOLOR="<% $bgcolor %>"><% $line %></TD>
       </TR>
 
 %   }