Dotclear

Changeset 2157:bdd306788929


Ignore:
Timestamp:
09/30/13 07:38:09 (10 years ago)
Author:
Anne Kozlika <kozlika@…>
Branch:
dcRepo
Message:

Un peu de cosmétique (wip)

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • admin/js/_plugins.js

    r2156 r2157  
    7878                                var support = $(rsp).find('support').text(); 
    7979                                        var box = document.createElement('div'); 
    80                                 var dl = document.createElement('dl'); 
     80                                var dl = document.createElement('ul'); 
     81                                dl.className = "mod-more"; 
    8182                                 
    8283                                if (author) { 
    83                                         $(dl).append($('<dt>'+dotclear.msg.module_author+'</dt><dd>'+author+'</dd>')); 
     84                                        $(dl).append($('<li>'+dotclear.msg.module_author+' '+author+'</li>')); 
    8485                                } 
    8586                                if (details) { 
     
    9091                                                dd += '<a class="support" href="'+support+'">'+dotclear.msg.module_support+'</a>'; 
    9192                                        } 
    92                                         $(dl).append($('<dt>'+dotclear.msg.module_help+'</dt><dd>'+dd+'</dd>')); 
     93                                        $(dl).append($('<li>'+dotclear.msg.module_help+' '+dd+'</li>')); 
    9394                                } 
    9495 
    95                                 $(td).append($(box).addClass('box').append(dl)); 
     96                                $(td).append($(box).addClass('two-boxes').append(dl)); 
    9697                                 
    9798                                var section = $(rsp).find('section').text(); 
     
    99100                                 
    100101                                        var boxb = document.createElement('div'); 
    101                                 var dlb = document.createElement('dl'); 
     102                                var dlb = document.createElement('ul'); 
     103                                dlb.className = "mod-more"; 
    102104                                 
    103105                                if (section) { 
    104                                         $(dlb).append($('<dt>'+dotclear.msg.module_section+'</dt><dd>'+section+'</dd>')); 
     106                                        $(dlb).append($('<li>'+dotclear.msg.module_section+' '+section+'</li>')); 
    105107                                } 
    106108                                if (tags) { 
    107                                         $(dlb).append($('<dt>'+dotclear.msg.module_tags+'</dt><dd>'+tags+'</dd>')); 
     109                                        $(dlb).append($('<li>'+dotclear.msg.module_tags+' '+tags+'</li>')); 
    108110                                } 
    109                                 $(td).append($(boxb).addClass('box').append(dlb)); 
     111                                $(td).append($(boxb).addClass('two-boxes').append(dlb)); 
    110112                        } else { 
    111113                                alert($(rsp).find('message').text()); 
  • admin/plugins.php

    r2156 r2157  
    220220 
    221221     echo 
    222      '<div class="multi-part" id="new" title="'.__('Add plugins').'">'. 
    223      '<h3>'.__('Add plugins').'</h3>'. 
    224      '<p>'.sprintf( 
    225           __("You can install plugins directly from %s repository."), 
    226           '<a title="'.__('Visit Dotaddict').'" href="http://dotaddict.org/dc2/plugins">dotaddict.org</a>' 
    227      ).'</p>'; 
     222     '<div class="multi-part" id="new" title="'.__('Add plugins from Dotaddict').'">'. 
     223     '<h3>'.__('Add plugins from Dotaddict repository').'</h3>'; 
    228224 
    229225     $list 
     
    240236 
    241237     echo 
     238     '<div class="info">'. 
     239     '<p>'.sprintf( 
     240          __("Visit %s repository, the resources center for Dotclear."), 
     241          '<a href="http://dotaddict.org/dc2/plugins">Dotaddict</a>' 
     242     ).'</p></div>'. 
    242243     '</div>'; 
    243244 
    244245     # Add a new plugin 
    245246     echo 
    246      '<div class="multi-part" id="addplugin" title="'.__('Install or upgrade a plugin').'">'; 
     247     '<div class="multi-part" id="addplugin" title="'.__('Install or upgrade manually').'">'; 
    247248 
    248249     echo '<p>'.__('You can install plugins by uploading or downloading zip files.').'</p>'; 
  • admin/style/default.css

    r2156 r2157  
    19881988     padding: 4px 4px 0 20px; 
    19891989     } 
     1990#m_search {     
     1991     background: transparent url(search.png) no-repeat 4px center; 
     1992     } 
     1993.modules tr.expand, .modules td.expand { 
     1994     background: #f5f5f5; 
     1995     border-color: #bee74b; 
     1996     } 
     1997.modules tr.expand { 
     1998     font-weight: bold; 
     1999     } 
     2000.modules td.expand { 
     2001     padding: 0; 
     2002     } 
     2003.mod-more, .mod-more li { 
     2004     margin: 0 0 0 1em; 
     2005     padding: 0; 
     2006     list-style-type: none; 
     2007     } 
    19902008/* ---------------------------------------------------------- post.php, page.php */ 
    19912009#entry-wrapper { 
  • inc/admin/lib.dc.page.php

    r2156 r2157  
    610610               __('Details')). 
    611611          self::jsVar('dotclear.msg.module_support', 
    612                __('Support:')). 
     612               __('Support')). 
    613613          self::jsVar('dotclear.msg.module_help', 
    614                __('Aide:')). 
     614               __('Help:')). 
    615615          self::jsVar('dotclear.msg.module_section', 
    616616               __('Section:')). 
  • inc/admin/lib.moduleslist.php

    r2156 r2157  
    124124 
    125125          echo  
    126           '<div class="box">'. 
    127           '<form action="'.$this->getPageURL().'" method="get">'. 
    128           '<p><label for="m_search" class="classic">'.__('Search:').'&nbsp;</label><br />'. 
    129           form::field(array('m_search'), 30, 255, html::escapeHTML($query)). 
     126          '<form action="'.$this->getPageURL().'" method="get" class="fieldset">'. 
     127          '<p><label for="m_search" class="classic">'.__('Search in repository:').'&nbsp;</label><br />'. 
     128          form::field(array('m_search','m_search'), 30, 255, html::escapeHTML($query)). 
    130129          '<input type="submit" value="'.__('Search').'" /> '. 
    131130          '</p>'; 
     
    133132          if ($query) { 
    134133               echo  
    135                '<p class="info">'.sprintf( 
     134               '<p>'.sprintf( 
    136135                    __('Found %d result for search "%s".', 'Found %d results for search "%s".', count($this->modules)),  
    137136                    count($this->modules), html::escapeHTML($query) 
    138                ).' <a href="'.$this->getPageURL().'">'.__('Reset search').'</a>'. 
     137               ).' <a href="'.$this->getPageURL().'" class="button">'.__('Reset search').'</a>'. 
    139138               '</p>'; 
    140139          } 
    141140 
    142141          echo  
    143           '</form>'. 
    144           '</div>'; 
     142          '</form>'; 
    145143 
    146144          return $this; 
     
    199197          } 
    200198          # Parse navigation menu 
    201           echo '<div class="pager">'.__('Index:').' <ul>'.implode('',$buttons).'</ul></div>'; 
     199          echo '<div class="pager">'.__('Browse index:').' <ul>'.implode('',$buttons).'</ul></div>'; 
    202200 
    203201          return $this; 
Note: See TracChangeset for help on using the changeset viewer.

Sites map