Browse Source

More theming

spficklin 14 năm trước cách đây
mục cha
commit
ddaf803724

+ 1 - 1
theme_tripal/tripal_feature/tripal_feature_blast_results.tpl.php

@@ -20,7 +20,7 @@ if(count($blast_results_list) > 0){
 	<div class="tripal-info-box-title tripal_analysis_blast-info-box-title">Blast vs. <?php print $db->name ?></div>
 	<div class="tripal-info-box-desc tripal_analysis_blast-info-box-desc">
 	<strong>Analysis Date: </strong><?php print "$blast_result->ana_time (<a href=".url("node/$blast_result->ana_nid").">$blast_result->ana_name</a>)"?><br>
-	Query: <?php print "$blast_result->xml_tag"?><br>
+	<!--Query: <?php print "$blast_result->xml_tag"?><br>-->
 	
 	<?php 
    if($blast_result->max != 10){    

+ 15 - 2
theme_tripal/tripal_feature/tripal_feature_featurelocs_as_child.tpl.php

@@ -14,7 +14,7 @@ $feature = $variables['node']->feature;
       <th>Type</th>
       <th>Position</th>
       <th>Phase</th>
-      <th>Strand</th>
+      <th>Direction</th>
     </tr>
     <?php
       $i = 0; 
@@ -33,7 +33,20 @@ $feature = $variables['node']->feature;
            <td><?php print $loc->cvname ?></td>
            <td><?php print $loc->src_name .":".$loc->fmin . ".." . $loc->fmax ?></td>
            <td><?php print $loc->phase ?></td>
-           <td><?php print $loc->strand ?></td>
+           <td><?php 
+              if($loc->strand == -1){
+                 print "reverse";
+              } 
+              elseif($loc->strand == 1){
+                 print "forward";
+              } 
+              elseif($loc->strand == 0){
+                 print "N/A";
+              } 
+              else {
+                 print $loc->strand;
+              }?>
+            </td>
          </tr>
          <?php
          $i++;  

+ 18 - 3
theme_tripal/tripal_feature/tripal_feature_featurelocs_as_parent.tpl.php

@@ -14,7 +14,7 @@ $feature = $variables['node']->feature;
       <th>Type</th>
       <th>Position</th>
       <th>Phase</th>
-      <th>Strand</th>
+      <th>Direction</th>
     </tr>
     <?php
       $i = 0; 
@@ -32,8 +32,23 @@ $feature = $variables['node']->feature;
            <td><?php print $locname ?></td>
            <td><?php print $loc->cvname ?></td>
            <td><?php print $loc->src_name .":".$loc->fmin . ".." . $loc->fmax ?></td>
-           <td><?php print $loc->phase ?></td>
-           <td><?php print $loc->strand ?></td>
+           <td>
+             <?php print $loc->phase ?>
+           </td>
+           <td><?php 
+              if($loc->strand == -1){
+                 print "reverse";
+              } 
+              elseif($loc->strand == 1){
+                 print "forward";
+              } 
+              elseif($loc->strand == 0){
+                 print "N/A";
+              } 
+              else {
+                 print $loc->strand;
+              }?>
+           </td>
          </tr>
          <?php
          $i++;  

+ 0 - 10
theme_tripal/tripal_feature/tripal_feature_relationships_as_object.tpl.php

@@ -13,7 +13,6 @@ $feature = $variables['node']->feature;
       <th>Name</th>
       <th>Type</th>
       <th>Relationship</th>
-      <th>Position</th>
     </tr>
     <?php
     $i = 0; 
@@ -36,15 +35,6 @@ $feature = $variables['node']->feature;
         </td>
         <td><?php print $result->subject_type?></td>
         <td><b><?php print $result->rel_type?></b></td>
-        <td>
-           <?php
-           $featurelocs = $result->featurelocs;
-           if($featurelocs){
-              foreach($featurelocs as $src => $attrs){
-                 print "$attrs->src_name ($attrs->src_cvname):$attrs->fmin $attrs->fmax</br>";
-              } 
-           }?> 
-        </td>
       </tr>
     <?php } ?>
   </table>