Changeset 13673 for trunk


Ignore:
Timestamp:
2007-01-18T10:38:03+13:00 (17 years ago)
Author:
lh92
Message:

added macros for gti status page

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/macros/gti.dm

    r12554 r13673  
    22
    33package gti
     4
     5#######################################################################
     6# page head
     7#######################################################################
     8_header_ {
     9<html>
     10<head>
     11<title>_pagetitle_</title>
     12<style type="text/css">
     13div.todo\{float: left; width: 23px; white-space: pre; text-align: right; color: red;\}
     14div.update\{float: left; width: 23px; white-space: pre; text-align: right; color: orange;\}
     15div.done\{float: left; width: 23px; white-space: pre; text-align: right; color: green;\}
     16div.plus\{float: left; width: 11px; white-space: pre; text-align: center;\}
     17div.nowrap\{table-layout: fixed; hight: 20px; width: 100px;\}
     18table.status\{border-collapse: collapse;border-style: none; font-size: 12pt;\}
     19td.first\{border:solid; border-width:1px; border-color:grey; border-collapse: collapse; vertical-align: middle;\}
     20td.status\{table-layout: fixed; border:solid; border-width:1px; border-color:grey; border-collapse: collapse; vertical-align: middle; text-align: center;\}
     21th.status\{border:solid; border-width:1px; border-color:white; border-collapse: collapse; background-color: #d0d0d0; text-align: center;\}
     22</style>
     23</head>
     24<body>
     25}
    426
    527#######################################################################
     
    6082  <input type="hidden" name="p" value="core"/><input type="submit" value="_textgtienter_"/>
    6183</center>
     84}
     85
     86# Content of the GTI "view status" page
     87_gtistatus_ {
     88<h2>_textgtistatustable_</h2>
     89<table>
     90<tr><td><font color="green">green</font>:</td><td>_textgtinumchunkstranslated2_</td></tr>
     91<tr><td><font color="orange">orange</font>:</td><td>_textgtinumchunksrequiringupdating2_</td></tr>
     92<tr><td><font color="red">red</font>:</td><td>_textgtinumchunksrequiringtranslation2_</td></tr>
     93</table>
     94_gtistatustable_
    6295}
    6396
     
    140173
    141174# --------------------------------------------------------------------------------
     175#   Displays the status of a translation file
     176#
     177#   Used on the GTI "view status" page
     178#
     179#   Parameters: 1 -- Number of chunks translated
     180#               2 -- Number of chunks requiring translation
     181#               3 -- Number of chunks requiring updating
     182# --------------------------------------------------------------------------------
     183_gtitranslationfilestatus2_ {
     184_If_("_1_" eq "0", , <font color="green">_1_</font>+<font color="orange">_3_</font>+<font color="red">_2_</font>)
     185}
     186
     187# --------------------------------------------------------------------------------
    142188#   Displays text area for correcting a chunk
    143189#
Note: See TracChangeset for help on using the changeset viewer.