Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision d648863f

Von Hans P. Schlaepfer vor fast 4 Jahren hinzugefügt

  • ID d648863fb5fd52a450eadd91d7ea85e401a48a8f
  • Vorgänger e449eb1c
  • Nachfolger c5148ccb

Neues Design 2019 Standard-Code templates/webpages/background_job_history/list.html

Unterschiede anzeigen:

templates/webpages/background_job_history/list.html
4 4

  
5 5
<h1>[% FORM.title %]</h1>
6 6

  
7
[%- INCLUDE 'common/flash.html' %]
7
[% INCLUDE 'common/flash.html' %]
8 8

  
9
[%- PROCESS 'background_job_history/_filter.html' filter=SELF.models.filtered.laundered %]
9
[% PROCESS 'background_job_history/_filter.html' filter=SELF.models.filtered.laundered %]
10 10

  
11
<div class="wrapper">
11 12
[% IF !ENTRIES.size %]
12
 <p>
13
  [%- LxERP.t8('There are no entries in the background job history.') %]
14
 </p>
15

  
16
[%- ELSE %]
17
 <table id="background_job_history_list" class="background_job_list" width="100%">
18
  <thead>
19
   <tr class="listheading">
20
    <th>[% L.sortable_table_header('package_name') %]</th>
21
    <th>[% L.sortable_table_header('run_at') %]</th>
22
    <th>[% L.sortable_table_header('status') %]</th>
23
    <th>[% L.sortable_table_header('result') %]</th>
24
    <th>[% L.sortable_table_header('error') %]</th>
25
   </tr>
26
  </thead>
27

  
28
  <tbody>
29
  [%- FOREACH entry = ENTRIES %]
30
  <tr class="listrow[% loop.count % 2 %]" id="background_job_history_id_[% entry.id %]">
31
   <td>
32
    <a href="[% SELF.url_for(action => 'show', id => entry.id, back_to => SELF.models.get_callback) %]">
33
     [%- HTML.escape(entry.package_name) %]
34
    </a>
35
   </td>
36
   <td>[%- HTML.escape(entry.run_at.to_lxoffice('precision' => 'second')) %]</td>
37
   <td>
38
    [%- IF entry.status == 'success' %]
39
     [%- LxERP.t8('succeeded') %]
40
    [%- ELSIF entry.status == 'failure' %]
41
     [%- LxERP.t8('failed') %]
42
    [%- ELSE %]
43
     [%- HTML.escape(entry.status) %]
44
    [%- END %]
45
   </td>
46
   <td>[%- HTML.escape(entry.result) %]</td>
47
   <td>[% IF entry.error_col %]<pre>[%- HTML.escape(L.truncate(entry.error_col)) %]</pre>[%- END %]</td>
48
  </tr>
49
  [%- END %]
50
  </tbody>
51
 </table>
52
[%- END %]
13
  <p>[% LxERP.t8('There are no entries in the background job history.') %]</p>
14

  
15
[% ELSE %]
16
  <table id="background_job_history_list" class="background_job_list tbl-list wi-moderate">
17
    <thead>
18
      <tr>
19
        <th>[% L.sortable_table_header('package_name') %]</th>
20
        <th>[% L.sortable_table_header('run_at') %]</th>
21
        <th>[% L.sortable_table_header('status') %]</th>
22
        <th>[% L.sortable_table_header('result') %]</th>
23
        <th>[% L.sortable_table_header('error') %]</th>
24
      </tr>
25
    </thead>
26

  
27
    <tbody>
28
    [% FOREACH entry = ENTRIES %]
29
      <tr class="listrow[% loop.count % 2 %]" id="background_job_history_id_[% entry.id %]">
30
        <td><a href="[% SELF.url_for(action => 'show', id => entry.id, back_to => SELF.models.get_callback) %]">[% HTML.escape(entry.package_name) %]</a></td>
31
        <td>[% HTML.escape(entry.run_at.to_lxoffice('precision' => 'second')) %]</td>
32
        <td>
33
          [% IF entry.status == 'success' %]
34
            [% LxERP.t8('succeeded') %]
35
          [% ELSIF entry.status == 'failure' %]
36
            [% LxERP.t8('failed') %]
37
          [% ELSE %]
38
            [% HTML.escape(entry.status) %]
39
          [% END %]
40
        </td>
41
        <td>[% HTML.escape(entry.result) %]</td>
42
        <td>[% IF entry.error_col %]<pre>[% HTML.escape(L.truncate(entry.error_col)) %]</pre>[% END %]</td>
43
      </tr>
44
    [% END %]
45
    </tbody>
46
  </table>
47

  
48
[% END %]
53 49

  
54 50
[% L.paginate_controls %]
51
</div><!-- /.wrapper -->
52

  

Auch abrufbar als: Unified diff