templates/view.html
authorAlan Knowles <alan@roojs.com>
Tue, 18 Dec 2018 04:34:59 +0000 (12:34 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 18 Dec 2018 04:34:59 +0000 (12:34 +0800)
templates/view.html

index e69de29..a12a29a 100644 (file)
@@ -0,0 +1,202 @@
+<!DOCTYPE html 
+      PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
+<html xmlns="http://www.w3.org/1999/xhtml" 
+      xmlns:html="http://www.w3.org/1999/xhtml" 
+      xmlns:svg="http://www.w3.org/2000/svg"
+      xmlns:xlink="http://www.w3.org/1999/xlink"> 
+    <head>
+        <!-- core/template/master.html -->
+
+        <title>{appName}</title>
+        <meta name="google" value="notranslate">
+        <flexy:include src="favicon.html"></flexy:include>
+                
+        
+        <link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css/roojs.css" />  
+        <link rel="stylesheet" type="text/css" href="{rootURL}/roojs1/css/xtheme-slate.css" />  
+        {outputCSSIncludes()}
+      
+     </head>
+<body>
+
+<!--
+  This is the ticket viewer template 
+
+-->
+{script:}
+
+var link = {
+    date : function (s) {
+        return s ? Date.parseDate( s, 'Y-m-d H:i:s').format('d/M/Y') : '';
+    },
+    username : function (n,id,e) {
+        return String.format('<span user:id="{2}" qtip="{1}">{0}</span>', n, id, e);
+    }
+};
+
+var cid = '';
+
+var cs = '';
+
+function isOpen() {
+
+    return t.status_name != 'closed';
+}
+
+
+{end:}
+
+<div class="ticket-view">
+    <div class="right-block">
+        <div class="watch-list" id="watch-{t.id}-mtrack-ticket"></div>
+        <flexy:include src="images.html"></flexy:include>
+    </div>
+      
+    {if(t.id)}
+    <h1>
+        {if(!isOpen())}
+        <del  >#{t.id} [{t.status_name}] {t.summary}</del>
+        {else:}
+        <span   >#{t.id} [{t.status_name}] {t.summary}</span>
+        {end:}
+    </h1> 
+    {end:}
+
+    <div class="ticket-view-main" id="issue-desc-{id}">
+    
+        
+        <div class="ticket-left-col">
+          <pre class="showdown-render readonly-tkt-description">{t.description}</pre>
+            
+          <div class="mtrack-ticket-events" id="events-list-{id}"></div>    
+        </div>    
+            
+        <div class="ticket-readonly">
+            
+            <fieldset class='ticket-properties-readonly'>
+                <legend>Properties</legend> 
+                <table>
+                    <tr>
+                        <td><label>Milestone</label>:</td>
+                        <td width='100%'><B>{t.milestone_id_name}</B></td>  
+                    </tr> 
+                      <tr>
+                        <td><label>Component</label>:</td>
+                        <td width='100%'><B>{t.components}</b></td>  
+                    </tr> 
+                    <tr>
+                        <td><label>Classification</label>:</td>
+                        <td width='100%'><B>{t.classification_id_name}</b></td>
+                    </tr> 
+                    <tr>
+                        <td><label>Priority</label>:</td>
+                        <td width='100%'><B>{t.priority_id_name}</b></td>
+                    </tr> 
+                    <tr>
+                        <td><label>Severity</label>:</td>
+                        <td width='100%'><b>{t.severity_id_name}</b></td>
+                    </tr> 
+                    <tr>
+                        <td><label>Keywords</label>:</td>
+                        <td width='100%'><b>{t.keywords}</b></td>
+                    </tr> 
+                    <!-- <tr flexy:if="tchangelog">
+                        <td colspan='2'><label>ChangeLog (customr visible)</label>:</td>
+                    </tr>
+                    <tr flexy:if="t.changelog">
+                        <td colspan='2'>{t.changelog:b}</td>
+                    </tr>
+                    -->
+                     
+                     
+                    
+                    
+                </table>
+            </fieldset> 
+            <fieldset class='ticket-status-readonly'>
+                <legend>Status / Resources</legend> 
+                <table>
+                     <tr>
+                        <td><label>Status</label>:</td>
+                        <td width='100%'>{t.status_name}</td>
+                    </tr> 
+                    <tr>
+                    <tr>
+                        <td><label>Developer</label>:</td>
+                        <td width='100%'>{t.developer_id_name}</td>
+                    </tr> 
+                    <tr>
+                        <td><label>Action required</label>:</td>
+                        <td width='100%'>{t.owner_id_name}</td>
+                    </tr> 
+                    <tr>
+                        <td><label>Estimated Hours</label>:</td>
+                        <td width='100%'>{t.estimated}</td>
+                    </tr> 
+                    <tr>
+                        <td><label>Spent Hours</label>:</td>
+                        <td width='100%'>{t.spent}</td>
+                    </tr> 
+                     
+                    <tr>
+                        <td><label>Opened</label>:</td>
+                        <td width='100%'>{link.date(t.created_changedate):h} by
+                           {link.username(t.created_person_id_name, t.created_person_id, t.created_person_id_email):h}
+                        </td>
+                    </tr>  
+                    <tr>
+                        <td><label>Updated</label>:</td>
+                        <td width='100%'>{link.date(t.updated_changedate):h} by
+                           {link.username(t.updated_person_id_name, t.updated_person_id, t.updated_person_id_email):h}</td>
+                    </tr> 
+                    
+                   
+                </table>
+            </fieldset> 
+        
+        
+           <fieldset class='ticket-status-readonly ticket-status-attachments'>
+              <legend>Attachments</legend>
+                   
+               <div class="attachments-list" >
+                     <!-- attachments go here.. -->
+               </div>
+                  
+            </fieldset>
+            
+            
+            <fieldset class='ticket-status-readonly'>
+                <legend>Watched By</legend>
+                <div class="watch-list" id="watch-{t.id}-mtrack-ticket"></div>
+
+            </fieldset>
+            
+            
+        </div> 
+        
+        
+       
+          
+        
+    </div>
+     
+    
+                  
+</div>  
+
+{script:}
+/*            
+                         <a class='attachment' href="{img.URL(#-1#,#/Images/Download#)}">{img.filename}  ({img.filesize})<a/>
+                         <br/>added by {img.created_by_name} <br/>created: {img.created}
+                         <span flexy:if="img.is(#image#)">
+                             <br/>
+                             <a flexy:href="{img.URL(#-1#,#/Images/Download#)}">{img.toHTML(#100#,#/Images/Thumb#):h}</a>
+                         </span>
+                        */
+                        
+{end:}
+</body>
\ No newline at end of file