summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2008-11-15 08:16:58 +0000
committerBharat Mediratta <bharat@menalto.com>2008-11-15 08:16:58 +0000
commitdc1090d005d4d565e2989dee94be3fcc1a6190a7 (patch)
tree2ca451d708501fb8445e618c65a32980aad01842
parent9d1a598ec0826b0e8c3b6fc0ff64863f5dde7edc (diff)
Now, only logged in users can edit stuff in-place.
-rw-r--r--themes/default/views/page.html.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/themes/default/views/page.html.php b/themes/default/views/page.html.php
index c6addf98..ac2a326b 100644
--- a/themes/default/views/page.html.php
+++ b/themes/default/views/page.html.php
@@ -12,9 +12,11 @@
<link rel="stylesheet" type="text/css" href="<?= $theme->url("css/screen.css") ?>"
media="screen,print,projection" />
<script src="<?= url::file("lib/jquery.js") ?>" type="text/javascript"></script>
- <script src="<?= url::file("lib/jquery.jeditable.js") ?>" type="text/javascript"></script>
<script src="<?= url::file("lib/jquery.form.js") ?>" type="text/javascript"></script>
<script src="<?= $theme->url("js/user.js") ?>" type="text/javascript"></script>
+ <? if ($user): ?>
+ <script src="<?= url::file("lib/jquery.jeditable.js") ?>" type="text/javascript"></script>
+ <? endif; ?>
</head>
<body>
@@ -42,6 +44,8 @@
</div>
</div>
</div>
+ <? if ($user): ?>
<?= $theme->in_place_edit(); ?>
+ <? endif; ?>
</body>
</html>