Browse Source

Added bluish admin color to all id fields

Stephen Ficklin 11 years ago
parent
commit
1c77dce4be

+ 6 - 2
tripal_analysis/theme/tripal_analysis/tripal_analysis_base.tpl.php

@@ -78,9 +78,13 @@ $analysis = tripal_core_expand_chado_vars($analysis,'field','analysis.descriptio
     $rows[] = array(
       array(
         'data' => 'Analysis ID',
-        'header' => TRUE
+        'header' => TRUE,
+        'class' => 'tripal-site-admin-only-table-row',
+      ),
+      array(
+        'data' => $analysis->analysis_id,
+        'class' => 'tripal-site-admin-only-table-row',
       ),
-      $analysis->analysis_id
     );
   }
   // the $table array contains the headers and rows array as well as other

+ 6 - 2
tripal_contact/theme/tripal_contact/tripal_contact_base.tpl.php

@@ -40,9 +40,13 @@ $contact = $variables['node']->contact; ?>
     $rows[] = array(
       array(
         'data' => 'Contact ID',
-        'header' => TRUE
+        'header' => TRUE,
+        'class' => 'tripal-site-admin-only-table-row',
+      ),
+      array(
+        'data' => $contact->contact_id,
+        'class' => 'tripal-site-admin-only-table-row',
       ),
-      $contact->contact_id
     );
   }
   

+ 3 - 6
tripal_core/theme/css/tripal.css

@@ -201,12 +201,9 @@
    padding: 10px 10px 10px 55px;
    font-style: italic;
 }
-/**
- * When when no tripal logo image is wanted 
- */
-.tripal-site-admin-only-noimg {
-  background-image: none;
+
+.tripal-site-admin-only-table-row {
   background-color: #cce3ff;
+  border: 1px solid #888888;
   color: black;
-  clear: both;
 }

+ 5 - 1
tripal_feature/theme/tripal_feature/tripal_feature_base.tpl.php

@@ -71,8 +71,12 @@ $feature  = $variables['node']->feature;  ?>
       array(
         'data' => 'Feature ID',
         'header' => TRUE,
+        'class' => 'tripal-site-admin-only-table-row',
+      ),
+      array(
+        'data' => $feature->feature_id,
+        'class' => 'tripal-site-admin-only-table-row',
       ),
-      $feature->feature_id
     );
   }
   // Is Obsolete Row

+ 10 - 12
tripal_feature/theme/tripal_organism/tripal_organism_feature_counts.tpl.php

@@ -17,18 +17,16 @@ if ($enabled) {
       <div class="tripal_organism-info-box-title tripal-info-box-title">Data Type Summary</div>
       <div class="tripal_organism-info-box-desc tripal-info-box-desc">The following data types are currently present for this organism</div> <?php
       // let admins know they can customize the terms that appear in the list
-      if (user_access('access administration pages')) { 
-         print theme('tripal_admin_message', array('message' => "
-           Administrators, you can customize the types of terms that appear in this report by 
-           navigating to the " . l('Tripal feature configuration page', 'admin/tripal/chado/tripal_feature/configuration') . "
-           opening the section \"Feature Summary Report\" and adding the list of
-           terms you want to appear in the list. You can rename terms as well.  To disable this report and 
-           remove it from the list of resources, navigate to the " . 
-           l('Tripal feature configuration page', 'admin/tripal/tripal_feature/configuration') . "
-           and hide the \"Feature Summary\". To refresh the data,re-populate the " .
-           l('organism_feature_count', 'admin/tripal/schema/mviews') . " materialized view.")
-         ); 
-      }?>
+      print theme('tripal_admin_message', array('message' => "
+        Administrators, you can customize the types of terms that appear in this report by 
+        navigating to the " . l('Tripal feature configuration page', 'admin/tripal/chado/tripal_feature/configuration') . "
+        opening the section \"Feature Summary Report\" and adding the list of
+        terms you want to appear in the list. You can rename terms as well.  To disable this report and 
+        remove it from the list of resources, navigate to the " . 
+        l('Tripal feature configuration page', 'admin/tripal/tripal_feature/configuration') . "
+        and hide the \"Feature Summary\". To refresh the data,re-populate the " .
+        l('organism_feature_count', 'admin/tripal/schema/mviews') . " materialized view.")
+      ); ?>
       <table id="tripal_organism-table-feature_counts" class="tripal_organism-table tripal-table tripal-table-horz">     
         <tr class="tripal_organism-table-odd-row tripal-table-even-row">
           <th>Feature Type</th>

+ 6 - 2
tripal_featuremap/theme/tripal_featuremap/tripal_featuremap.base.tpl.php

@@ -45,9 +45,13 @@ $featuremap = tripal_core_expand_chado_vars($featuremap, 'field', 'featuremap.de
     $rows[] = array(
       array(
         'data' => 'Feature Map ID',
-        'header' => TRUE
+        'header' => TRUE,
+        'class' => 'tripal-site-admin-only-table-row',
+      ),
+      array(
+        'data' => $featuremap->featuremap_id,
+        'class' => 'tripal-site-admin-only-table-row',
       ),
-      $featuremap->featuremap_id
     );
   }
 

+ 5 - 1
tripal_library/theme/tripal_library/tripal_library.base.tpl.php

@@ -72,8 +72,12 @@ $description = $libprop->value;
       array(
         'data' => 'Library ID',
         'header' => TRUE
+        'class' => 'tripal-site-admin-only-table-row',
+      ),
+      array(
+        'data' => $library->library_id,
+        'class' => 'tripal-site-admin-only-table-row',
       ),
-      $library->library_id,
     );
   }
   

+ 6 - 2
tripal_organism/theme/tripal_organism/tripal_organism_base.tpl.php

@@ -67,10 +67,14 @@ $organism = tripal_core_expand_chado_vars($organism,'field','organism.comment');
     // Organism ID
     $rows[] = array(
       array(
-        'data' => 'Organism ID',
+        'data'   => 'Organism ID',
         'header' => TRUE,
+        'class'  => 'tripal-site-admin-only-table-row',
+      ),
+      array(
+       'data'  => $organism->organism_id,
+       'class' => 'tripal-site-admin-only-table-row',
       ),
-       $organism->organism_id,
     );
   }
 

+ 6 - 2
tripal_project/theme/tripal_project/tripal_project.base.tpl.php

@@ -54,9 +54,13 @@ else {
     $rows[] = array(
       array(
         'data' => 'Project ID',
-        'header' => TRUE
+        'header' => TRUE,
+        'class' => 'tripal-site-admin-only-table-row',
+      ),
+      array(
+        'data' => $project->project_id,
+        'class' => 'tripal-site-admin-only-table-row',
       ),
-      $project->project_id
     );
   }
   // the $table array contains the headers and rows array as well as other

+ 6 - 2
tripal_pub/theme/tripal_pub/tripal_pub_base.tpl.php

@@ -206,9 +206,13 @@ if (count($urls) > 0) {
       $rows[] = array(
         array(
           'data' => 'Pub ID',
-          'header' => TRUE
+          'header' => TRUE,
+          'class' => 'tripal-site-admin-only-table-row',
+        ),
+        array(
+          'data' => $pub->pub_id,
+          'class' => 'tripal-site-admin-only-table-row',
         ),
-        $pub->pub_id
       );
     }
     // Is Obsolete Row

+ 6 - 2
tripal_stock/theme/tripal_stock/tripal_stock_base.tpl.php

@@ -67,9 +67,13 @@ $stock = tripal_core_expand_chado_vars($stock, 'field', 'stock.uniquename');
     $rows[] = array(
       array(
         'data' => 'Stock ID',
-        'header' => TRUE
+        'header' => TRUE,
+        'class' => 'tripal-site-admin-only-table-row',
+      ),
+      array(
+        'data' => $stock->stock_id,
+        'class' => 'tripal-site-admin-only-table-row',
       ),
-      $stock->stock_id
     );
   }
   // Is Obsolete Row