templates/view.html
[Pman.MTrack] / templates / view.html
1 <!DOCTYPE html 
2       PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
4 <html xmlns="http://www.w3.org/1999/xhtml" 
5       xmlns:html="http://www.w3.org/1999/xhtml" 
6       xmlns:svg="http://www.w3.org/2000/svg"
7       xmlns:xlink="http://www.w3.org/1999/xlink"> 
8     <head>
9         <!-- core/template/master.html -->
10
11         <title>{appName}</title>
12         <meta name="google" value="notranslate">
13         <flexy:include src="favicon.html"></flexy:include>
14                 
15         
16         <link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css/roojs.css" />  
17         <link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css/xtheme-slate.css" />  
18  
19         {outputCSSIncludes()}
20       
21      </head>
22 <body>
23
24  
25 <!--
26   This is the ticket viewer template 
27
28 -->
29 {script:}
30
31 var link = {
32     date : function (s) {
33         return s ? Date.parseDate( s, 'Y-m-d H:i:s').format('d/M/Y') : '';
34     },
35     username : function (n,id,e) {
36         return String.format('<span user:id="{2}" qtip="{1}">{0}</span>', n, id, e);
37     }
38 };
39
40 var cid = '';
41
42 var cs = '';
43
44 function isOpen() {
45
46     return t.status_name != 'closed';
47 }
48
49
50 {end:}
51
52 <div class="ticket-view">
53     <div class="right-block">
54         <div class="watch-list" id="watch-{t.id}-mtrack-ticket"></div>
55         <flexy:include src="images.html"></flexy:include>
56     </div>
57       
58     {if(t.id)}
59     <h1>
60         {if(!isOpen())}
61         <del  >#{t.id} [{t.status_name}] {t.summary}</del>
62         {else:}
63         <span   >#{t.id} [{t.status_name}] {t.summary}</span>
64         {end:}
65     </h1> 
66     {end:}
67
68     <div class="ticket-view-main" id="issue-desc-{id}">
69     
70         
71         <div class="ticket-left-col">
72           <pre class="showdown-render readonly-tkt-description">{t.description}</pre>
73             
74           <div class="mtrack-ticket-events" id="events-list-{id}"></div>    
75         </div>    
76             
77         <div class="ticket-readonly">
78             
79             <fieldset class='ticket-properties-readonly'>
80                 <legend>Properties</legend> 
81                 <table>
82                     <tr>
83                         <td><label>Milestone</label>:</td>
84                         <td width='100%'><B>{t.milestone_id_name}</B></td>  
85                     </tr> 
86                       <tr>
87                         <td><label>Component</label>:</td>
88                         <td width='100%'><B>{t.components}</b></td>  
89                     </tr> 
90                     <tr>
91                         <td><label>Classification</label>:</td>
92                         <td width='100%'><B>{t.classification_id_name}</b></td>
93                     </tr> 
94                     <tr>
95                         <td><label>Priority</label>:</td>
96                         <td width='100%'><B>{t.priority_id_name}</b></td>
97                     </tr> 
98                     <tr>
99                         <td><label>Severity</label>:</td>
100                         <td width='100%'><b>{t.severity_id_name}</b></td>
101                     </tr> 
102                     <tr>
103                         <td><label>Keywords</label>:</td>
104                         <td width='100%'><b>{t.keywords}</b></td>
105                     </tr> 
106                     <!-- <tr flexy:if="tchangelog">
107                         <td colspan='2'><label>ChangeLog (customr visible)</label>:</td>
108                     </tr>
109                     <tr flexy:if="t.changelog">
110                         <td colspan='2'>{t.changelog:b}</td>
111                     </tr>
112                     -->
113                      
114                      
115                     
116                     
117                 </table>
118             </fieldset> 
119             <fieldset class='ticket-status-readonly'>
120                 <legend>Status / Resources</legend> 
121                 <table>
122                      <tr>
123                         <td><label>Status</label>:</td>
124                         <td width='100%'>{t.status_name}</td>
125                     </tr> 
126                     <tr>
127                     <tr>
128                         <td><label>Developer</label>:</td>
129                         <td width='100%'>{t.developer_id_name}</td>
130                     </tr> 
131                     <tr>
132                         <td><label>Action required</label>:</td>
133                         <td width='100%'>{t.owner_id_name}</td>
134                     </tr> 
135                     <tr>
136                         <td><label>Estimated Hours</label>:</td>
137                         <td width='100%'>{t.estimated}</td>
138                     </tr> 
139                     <tr>
140                         <td><label>Spent Hours</label>:</td>
141                         <td width='100%'>{t.spent}</td>
142                     </tr> 
143                      
144                     <tr>
145                         <td><label>Opened</label>:</td>
146                         <td width='100%'>{link.date(t.created_changedate):h} by
147                            {link.username(t.created_person_id_name, t.created_person_id, t.created_person_id_email):h}
148                         </td>
149                     </tr>  
150                     <tr>
151                         <td><label>Updated</label>:</td>
152                         <td width='100%'>{link.date(t.updated_changedate):h} by
153                            {link.username(t.updated_person_id_name, t.updated_person_id, t.updated_person_id_email):h}</td>
154                     </tr> 
155                     
156                    
157                 </table>
158             </fieldset> 
159         
160         
161            <fieldset class='ticket-status-readonly ticket-status-attachments'>
162               <legend>Attachments</legend>
163                    
164                <div class="attachments-list" >
165                      <!-- attachments go here.. -->
166                </div>
167                   
168             </fieldset>
169             
170             
171             <fieldset class='ticket-status-readonly'>
172                 <legend>Watched By</legend>
173                 <div class="watch-list" id="watch-{t.id}-mtrack-ticket"></div>
174
175             </fieldset>
176             
177             
178         </div> 
179         
180         
181        
182           
183         
184     </div>
185      
186     
187                   
188 </div>  
189  
190
191 {script:}
192 /*            
193                          <a class='attachment' href="{img.URL(#-1#,#/Images/Download#)}">{img.filename}  ({img.filesize})<a/>
194                          <br/>added by {img.created_by_name} <br/>created: {img.created}
195                          <span flexy:if="img.is(#image#)">
196                              <br/>
197                              <a flexy:href="{img.URL(#-1#,#/Images/Download#)}">{img.toHTML(#100#,#/Images/Thumb#):h}</a>
198                          </span>
199                         */
200                         
201 {end:}
202 </body>