summaryrefslogtreecommitdiffstats
path: root/application/views/file/html_header.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2012-05-01 21:52:03 +0200
committerFlorian Pritz <bluewind@xinu.at>2012-05-01 21:52:03 +0200
commite7797f36cf7fd98c825f497bc7f24015c95e8d22 (patch)
treecfad2e0f14d3b091bf8cb9f1ed2511ca47d8057f /application/views/file/html_header.php
parenta89147c24dfd41420dd03405995b417d7b32a597 (diff)
move file link generation from controller to view
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'application/views/file/html_header.php')
-rw-r--r--application/views/file/html_header.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/application/views/file/html_header.php b/application/views/file/html_header.php
index 436f7491d..284844410 100644
--- a/application/views/file/html_header.php
+++ b/application/views/file/html_header.php
@@ -7,14 +7,14 @@
</head>
<body>
<div class="top_bar">
- <a class="raw_link no" href="<?php echo $new_link; ?>">New</a> |
- <a class="raw_link no" href="<?php echo $raw_link; ?>">Raw</a> |
- <a class="raw_link no" href="<?php echo $plain_link; ?>">Plain</a> |
+ <a class="raw_link no" href="<?php echo site_url(); ?>">New</a> |
+ <a class="raw_link no" href="<?php echo site_url($id); ?>">Raw</a> |
+ <a class="raw_link no" href="<?php echo site_url($id."/plain"); ?>">Plain</a> |
Currently: <?php echo $current_highlight; ?> |
- Timeout: <a class="raw_link no" href="<?php echo $delete_link; ?>" title="delete"><?php echo $timeout; ?></a>
+ Timeout: <a class="raw_link no" href="<?php echo site_url("file/delete/".$id); ?>" title="delete"><?php echo $timeout; ?></a>
<div style="float:right;">
- <a class="raw_link no" href="<?php echo $auto_link; ?>">Code</a> |
- <a class="raw_link no" href="<?php echo $rmd_link; ?>">Render Markdown</a>
+ <a class="raw_link no" href="<?php echo site_url($id)."/"; ?>">Code</a> |
+ <a class="raw_link no" href="<?php echo site_url($id."/rmd"); ?>">Render Markdown</a>
</div>
</div>
<script type="text/javascript">