~ubuntu-branches/debian/jessie/web2py/jessie

« back to all changes in this revision

Viewing changes to applications/admin/views/default/site.html

  • Committer: Package Import Robot
  • Author(s): José L. Redrejo Rodríguez
  • Date: 2011-11-04 10:12:01 UTC
  • mfrom: (1.1.10)
  • Revision ID: package-import@ubuntu.com-20111104101201-ym8q3030ik8sc10u
Tags: 1.99.2.1-1
* Updated upstream sources with real 1.99.2 version
* Ensure python-gtk2 is not needed to run web2py, fixing 
  debian/patches/gtk_gui (Closes: #646931)
* Refreshed debian/patches/avoid_updating patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
        {{if MULTI_USER_MODE and db.app(name=a):}}(created by {{="%(first_name)s %(last_name)s" % db.auth_user[db.app(name=a).owner]}}){{pass}}
18
18
        <p class="controls">
19
19
        {{if not os.path.exists('applications/%s/compiled' % a):}}
20
 
        {{=sp_button(URL('design',args=a), T("edit"))}}
 
20
        {{=sp_button(URL('design',args=a), T("Edit"))}}
21
21
        {{else:}}
22
22
        {{=button(URL(a,'appadmin','index'), T("appadmin"))}}
23
23
        {{pass}}
24
 
        {{=button(URL('about',args=a), T("about"))}}
 
24
        {{=button(URL('about',args=a), T("About"))}}
25
25
        {{pass}}
26
 
        {{=button(URL('errors',args=a), T("errors"))}}
27
 
        {{=button(URL('cleanup',args=a), T("clean"))}}
28
 
        {{=button(URL('pack',args=a), T("pack all"))}}
 
26
        {{=button(URL('errors',args=a), T("Errors"))}}
 
27
        {{=button(URL('cleanup',args=a), T("Clean"))}}
 
28
        {{=button(URL('pack',args=a), T("Pack all"))}}
29
29
        {{if not os.path.exists('applications/%s/compiled' % a):}}
30
 
        {{=button(URL('compile_app',args=a), T("compile"))}}
 
30
        {{=button(URL('compile_app',args=a), T("Compile"))}}
31
31
        {{else:}}
32
 
        {{=button(URL('pack',args=(a, 'compiled')), T("pack compiled"))}}
 
32
        {{=button(URL('pack',args=(a, 'compiled')), T("Pack compiled"))}}
33
33
        {{if glob.glob('applications/%s/controllers/*.py' % a):}}
34
 
        {{=button(URL('remove_compiled_app',args=a), T("remove compiled"))}}
 
34
        {{=button(URL('remove_compiled_app',args=a), T("Remove compiled"))}}
35
35
        {{pass}}
36
36
        {{pass}}
37
37
        {{if a!=request.application:}}
38
 
        {{=button(URL('uninstall',args=a), T("uninstall"))}}
 
38
        {{=button(URL('uninstall',args=a), T("Uninstall"))}}
39
39
        {{pass}}
40
40
        </p>
41
41
      </li>
51
51
      {{if MULTI_USER_MODE:}}
52
52
      {{=auth.navbar()}}
53
53
      {{else:}}
54
 
      {{=sp_button(URL('change_password'), T('change admin password'))}}
 
54
      {{=sp_button(URL('change_password'), T('Change admin password'))}}
55
55
      {{pass}}
56
56
    </div>
57
57
    <!-- VERSION -->
58
58
    {{if is_manager():}}
59
59
    <div class="box">
60
 
      <h3>{{=myversion}}</h3>      
 
60
      <h3>{{="Version %s.%s.%s (%s) %s" % myversion}}</h3>      
61
61
      </p>
62
62
      <div class="formfield">
63
63
        Running on {{=request.env.server_software}}
64
64
      </div>
 
65
      <p>{{=button(URL('default','reload_routes'), T('Reload routes'))}}</p>
65
66
    </div>
66
67
    {{pass}}
67
68
    <!-- APP WIZARD -->
68
69
    <div class="box">
69
70
      <h3>{{=T("New application wizard")}}</h3>
70
 
      <p>{{=button(URL('wizard','index'), T('start wizard'))}}
 
71
      <p>{{=button(URL('wizard','index'), T('Start wizard'))}}
71
72
      {{=T("(requires internet access)")}}</p>
72
73
    </div>
73
74
    <!-- SCAFFOLD APP -->
77
78
        <div class="formfield">
78
79
          {{=LABEL(T("Application name:"), _for="scaffold_filename")}} 
79
80
          <input name="filename" type="text" id="scaffold_filename" /> 
80
 
          <button type="submit" class="button">{{=T('create')}}</button>
 
81
          <button type="submit" class="button">{{=T('Create')}}</button>
81
82
        </div>
82
83
        <div class="hidden"></div>
83
84
      </form>
84
85
    </div>
85
86
    <!-- UPLOAD PACKAGE -->
86
87
    <div class="box">
87
 
      <h3>{{=T("Upload & install packed application")}}</h3>
 
88
      <h3>{{=T("Upload and install packed application")}}</h3>
88
89
      <form action="" enctype="multipart/form-data" method="post">
89
90
        <div class="formfield">
90
91
          <table>
107
108
            </tr>
108
109
            <tr>
109
110
              <td>
110
 
                {{=LABEL(T("Use an url:"), _for='upload_url')}}
 
111
                {{=LABEL(T("Get from URL:"), _for='upload_url')}}
111
112
              </td>
112
113
              <td>
113
114
                <input id="appurl" name="appurl" type="text" id="upload_url"/>
117
118
              <td></td>
118
119
              <td>
119
120
                <input type="checkbox" name="overwrite_check" id="upload_overwrite" /> 
120
 
                {{=LABEL(T("overwrite installed app"), _for='upload_overwrite')}}
 
121
                {{=LABEL(T("Overwrite installed app"), _for='upload_overwrite')}}
121
122
              </td>
122
123
            </tr>
123
124
            <tr>
124
125
              <td></td>
125
126
              <td>
126
 
                <button type="submit">{{=T('install')}}</button>
 
127
                <button type="submit">{{=T('Install')}}</button>
127
128
              </td>
128
129
            </tr>
129
130
          </table>
133
134
    <!-- DEPLOY ON GAE -->
134
135
    <div class="box">
135
136
      <h3>{{=T("Deploy on Google App Engine")}}</h3>
136
 
      <p>{{=button(URL('gae','deploy'), T('deploy'))}}</p>
 
137
      <p>{{=button(URL('gae','deploy'), T('Deploy'))}}</p>
137
138
    </div><br/>
138
139
    {{if TWITTER_HASH:}}        
139
140
    <div class="box">