Project

General

Profile

« Previous | Next » 

Revision 6b5815cd

Added by Andreas Kohlbecker almost 11 years ago

compacting display of cdm debug block

View differences:

7.x/modules/cdm_dataportal/cdm_api/cdm_api.module
82 82
  switch ($delta) {
83 83
    case 'cdm_ws_debug':
84 84

  
85
    $cdm_ws_url = variable_get('cdm_webservice_url', '');
86

  
85 87
    $field_map = array(
86
        'ws_uri' => t('URI'),
88
        'ws_uri' => t('URI') . ' <code>(' . $cdm_ws_url .'...)</code>',
87 89
        'time' => t('Time'),
88 90
        'fetch_seconds' => t('Fetching [s]'),
89 91
        'parse_seconds' => t('Parsing [s]'),
......
102 104
    $rows = array();
103 105

  
104 106
    foreach ($_SESSION['cdm']['ws_debug'] as $data){
105
      $cells = array();
107

  
106 108
      $data = unserialize($data);
109

  
110
      // stip of webservice base url
111
      $data['ws_uri'] = str_replace($cdm_ws_url, '', $data['ws_uri']);
112

  
113
      $cells = array();
107 114
      foreach ($field_map as $field => $label){
108 115
        $cells[] = '<td class="' . $field . '">' .  $data[$field] . '</td>';
109 116
      }
7.x/modules/cdm_dataportal/cdm_dataportal.css
30 30
  width: 100%;
31 31
}
32 32

  
33
#cdm-ws-debug-table code {
34
  font-weight: normal;
35
}
36

  
33 37
#cdm-ws-debug-table td.data_links a {
34 38
  color: #999;
35 39
}

Also available in: Unified diff