Changeset 12901


Ignore:
Timestamp:
4 May 2015, 08:24:12 (10 years ago)
Author:
Henrik Bettermann
Message:

Add link ‘Kofa Docs for this page’ at the end of the content box which refers to the corresponding section of the Kofa Documentation.

Location:
main/waeup.kofa/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/CHANGES.txt

    r12900 r12901  
    441.3.2.dev0 (unreleased)
    55=======================
     6
     7* Add link 'Kofa Docs for this page' at the end of the content box
     8  which refers to the corresponding section of the
     9  `Kofa Documentation <http://kofa-doc.waeup.org>`_.
    610
    711* Filter students by current level in reports.
  • main/waeup.kofa/trunk/docs/source/userdocs/datacenter/logging.rst

    r12895 r12901  
    111111==============
    112112
    113 All actions in the data center are logged in ``datacenter.log``.
    114 These are uploading import files, processing import files and
    115 downloading any kind of datacenter file::
     113All actions in the data center (uploading, processing, downloading
     114and deleting of files) are logged in ``datacenter.log``::
    116115
    117116  2015-04-29 06:52:23,483 - INFO - admin - browser.pages.DatacenterUploadPage - uploaded: /kofa/trunk/var/datacenter/users_admin.csv
  • main/waeup.kofa/trunk/layout/static/css/base.css

    r12437 r12901  
    163163    margin: 0px 0px 4px 0px;
    164164    display: inline-block;
     165}
     166
     167/* Documentation link*/
     168
     169div.documentation {
     170    margin-top: -20px;
     171    text-align: right;
    165172}
    166173
  • main/waeup.kofa/trunk/layout/theme.html

    r11741 r12901  
    517517              </tbody>
    518518            </table>
     519            <br>
     520            <div class="documentation">
     521              <a href="#" target="_blank">
     522                Kofa Docs for this page
     523              </a>
     524            </div>
    519525          </div> <!-- /well kofa-content-->
    520526        </div> <!-- /kofa-content-wide -->
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py

    r12891 r12901  
    5959    ISessionConfiguration, ISessionConfigurationAdd, IJobManager,
    6060    IPasswordValidator, IContactForm, IKofaUtils, ICSVExporter,
    61     academic_sessions_vocab)
     61    academic_sessions_vocab, DOCLINK)
    6262from waeup.kofa.permissions import (
    6363    get_users_with_local_roles, get_all_roles, get_all_users,
     
    891891    label = _(u'Data Center')
    892892    pnav = 0
     893    doclink = DOCLINK + '/datacenter.html'
    893894
    894895    @jsaction(_('Remove selected'))
     
    11701171    pnav = 0
    11711172    cancel_button =_(u'Back to Data Center')
     1173    doclink = DOCLINK + '/datacenter/import_stages.html'
    11721174
    11731175    def getFiles(self):
     
    12011203    back_button =_(u'Back to step 1')
    12021204    proceed_button =_(u'Proceed to step 3')
     1205    doclink = DOCLINK + '/datacenter/import_stages.html'
    12031206
    12041207    filename = None
     
    13061309    back_button =_(u'Back to step 2')
    13071310    proceed_button =_(u'Perform import')
     1311    doclink = DOCLINK + '/datacenter/import_stages.html'
    13081312
    13091313    filename = None
     
    14141418    pnav = 0
    14151419    back_button =_(u'Process next')
     1420    doclink = DOCLINK + '/datacenter/import_stages.html'
    14161421
    14171422    filename = None
     
    14771482    back_button = _(u'Back to Data Center')
    14781483    show_button = _(u'Show')
     1484    doclink = DOCLINK + '/datacenter/logging.html'
    14791485
    14801486    def update(self, back=None):
     
    14951501    placeholder = _('Enter a regular expression here...')
    14961502
     1503    def doclink(self):
     1504        return DOCLINK + (
     1505            '/datacenter/logging.html#%s' % self.filename.replace('.', '-'))
     1506
    14971507    def label(self):
    14981508        return "Logfile %s" % self.filename
     
    15701580    export_button = _(u'Create CSV file')
    15711581    cancel_button =_(u'Back to Data Center')
     1582    doclink = DOCLINK + '/datacenter/export.html'
    15721583
    15731584    def getExporters(self):
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/datacenterlogsshowfilepage.pt

    r11254 r12901  
    22  <input type="text" name="query" class="form-control"
    33         tal:attributes="value view/query; placeholder view/placeholder" />
     4   <br />
    45  <input class="btn btn-primary" type="submit" name="search"
    56         tal:attributes="value view/search_button" />
     
    910         tal:attributes="value view/filename" />
    1011</form>
    11 
     12<br />
    1213<div tal:condition="view/result|nothing">
    1314  <pre tal:content="structure view/result">
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/staffsitelayout.pt

    r11463 r12901  
    8989    <div class="sidebar well">
    9090        <div tal:condition="layout/getStudentName">
    91           <div class="kofa-sidebar-title" tal:content="layout/getStudentName">STUDENTNAME</div>
     91          <div class="kofa-sidebar-title" tal:content="layout/getStudentName">
     92            STUDENTNAME
     93          </div>
    9294          <ul class="nav">
    9395            <tal:left content="structure provider:left_studentmanage" />
     
    9597        </div>
    9698        <div tal:condition="layout/isAuthenticated">
    97           <div class="kofa-sidebar-title" tal:content="layout/getUserTitle">USERNAME</div>
     99          <div class="kofa-sidebar-title" tal:content="layout/getUserTitle">
     100            USERNAME
     101          </div>
    98102          <ul class="nav">
    99103            <tal:left content="structure provider:left_manage" />
     
    132136      </div>
    133137      <br />
    134 
     138      <div class="documentation" tal:condition="view/doclink|nothing">
     139        <a href="#" tal:attributes="href view/doclink"
     140           i18n:translate="" target="_blank">
     141          Kofa Docs for this page
     142        </a>
     143      </div>
    135144    </div>
    136145    <!-- /Diazo element-->
  • main/waeup.kofa/trunk/src/waeup/kofa/interfaces.py

    r12836 r12901  
    4444WAEUP_KEY = 'waeup.kofa'
    4545VIRT_JOBS_CONTAINER_NAME = 'jobs'
     46DOCLINK = 'http://kofa-doc.waeup.org/userdocs'
    4647
    4748CREATED = 'created'
  • main/waeup.kofa/trunk/src/waeup/kofa/reports.py

    r12900 r12901  
    153153
    154154class ReportsOfficer(grok.Role):
    155     """The Reports Officer has the permission to to view, add and remove
     155    """The Reports Officer has the permission to view, add and remove
    156156    **own** reports.
    157157    """
     
    161161
    162162class ReportsManager(grok.Role):
    163     """The Reports Manager has the permission to to view, add and remove
     163    """The Reports Manager has the permission to view, add and remove
    164164    **all** reports.
    165165    """
  • main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py

    r12874 r12901  
    4545    IKofaObject, IUserAccount, IExtFileStore, IPasswordValidator, IContactForm,
    4646    IKofaUtils, IUniversity, IObjectHistory, academic_sessions, ICSVExporter,
    47     academic_sessions_vocab, IJobManager, IDataCenter)
     47    academic_sessions_vocab, IJobManager, IDataCenter, DOCLINK)
    4848from waeup.kofa.interfaces import MessageFactory as _
    4949from waeup.kofa.widgets.datewidget import (
     
    31463146    pnav = 1
    31473147    redirect_target = ''
     3148    doclink = DOCLINK + '/datacenter/export.html#student-data-exporters'
    31483149
    31493150    def _set_session_values(self):
Note: See TracChangeset for help on using the changeset viewer.