Browse the code

 

Differences between 622 and 623 on /.
Number of edited files: 2 (0 added, 0 deleted and 2 modified)
Revision 623

About 3 months and 0 day ago.

[tasks manager] Order tags on the Board in alphabetical order, and don't show the "Everything" link if there's no tags in this milestone (references #234)
Added file(s) Deleted file(s) Modified file(s)

 

Old New Code
26
26

                                        
27
27
<p class="spacer">&nbsp;</p>
28
28

                                        
29
 
<a href="<?=$link_str;?>" class="bugs_board_nofilter"><?=i18n('Everything');?></a>
30
 
<!--
31
 
<span class="bugs_board_filter"><?=i18n('Filter by tag:');?></span>
32
 
-->
33
 
<ul class="tags_list_wdg">
34
 
  <?php foreach($_all_tags as $tag): ?>
35
 
    <li><a href="<?=$link_str;?>/tag:<?=$tag;?>" <?=(($specified_tag == $tag) ? 'class="current"' : '');?>><?=$tag;?></a></li>
36
 
  <?php endforeach; ?>
37
 
</ul>
 
29
<?php if (count($_all_tags) > 0): ?>
 
30
  <a href="<?=$link_str;?>" class="bugs_board_nofilter"><?=i18n('Everything');?></a>
 
31
  <ul class="tags_list_wdg">
 
32
    <?php foreach($_all_tags as $tag): ?>
 
33
      <li><a href="<?=$link_str;?>/tag:<?=$tag;?>" <?=(($specified_tag == $tag) ? 'class="current"' : '');?>><?=$tag;?></a></li>
 
34
    <?php endforeach; ?>
 
35
  </ul>
 
36
  <p class="spacer">&nbsp;</p>
 
37
<?php endif; ?>
38
38

                                        
39
 
<p class="spacer">&nbsp;</p>
40
 

                                    
41
39
<table class="taskboard">
42
40
  <thead>
43
41
    <tr>
62
60
                <?=$ticket['priority'];?>
63
61
              </span>
64
62
            <?php endif; ?>
65
 
<!--
66
 
            <?php if ($ticket['type'] == 'featurerequest'): ?>
67
 
              <span class="date buglist_frquest">
68
 
                <i class="fas fa-plus-circle fa-fw"></i>
69
 
                <?=i18n('Feature request');?>
70
 
              </span>
71
 
            <?php endif; ?>
72
63

                                        
73
 
            <?php if ($ticket['has_attachements']): ?>
74
 
              <span class="date buglist_attach">
75
 
                <i class="fas fa-file-alt fa-fw"></i>
76
 
                <?=i18n('Attachement');?>
77
 
              </span>
78
 
            <?php endif; ?>
79
 
-->
80
64
            <a href="project/<?=$_dbname;?>/bugs/show/<?=$ticket['id'];?>" style="display: block;line-height: 2.0em;">
81
65
              <strong class="buglist_number">#<?=$ticket['id'];?></strong>
82
66
              <strong><?=$ticket['name'];?></strong>
83
67
            </a><br />
84
 
<!--
85
 
            <?php if(!empty($ticket['version'])): ?>
86
 
              <span class="buglist_info buglist_version">
87
 
                <i class="fas fa-code-branch fa-fw"></i>
88
 
                <a href="project/<?=$_dbname;?>/bugs/?nbbugs=30&amp;withversion=1&amp;version=<?=$ticket['version'];?>"><?=$ticket['version'];?></a>
89
 
              </span>
90
 
            <?php endif; ?>
91
 
-->
 
68

                                    
92
69
            <?php if ($ticket['_status'] == 'unconfirmed'): ?>
93
70
              <span class="buglist_info buglist_status">
94
71
                <i class="fas fa-question fa-fw"></i>
95
72

                                        

 

Old New Code
248
248
            }
249
249
        }
250
250

                                        
 
251
        sort($all_tags);
251
252
        $construct['_all_tags'] = $all_tags;
252
253
        $construct['specified_tag'] = $specified_tag;
253
254
        $construct['link_str'] = 'project/'.$this->dbname.'/board/'.$active_milestone;
254
255