Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed linking for listing tables

  • Loading branch information...
commit a1aa5b97b48478fdfd9ccbc76de4b791e0542908 1 parent b67659c
@katzgrau authored
View
6 application/views/global/_left_column.php
@@ -35,18 +35,18 @@
<?php if ($items = News::getRecent()): ?>
<div class="info-box clearfix">
- <h2>Spark News</h2>
+ <h2>GetSparks.org News</h2>
<ul>
<?php foreach ($items as $item): ?>
<li class="clearfix">
<p class="no-margin">
- <a style="font-size:16px;" href="<?php echo $item->url ?>"><?php echo $item->title ?></a><br />
+ <a style="font-size:16px;" target="_blank" href="<?php echo $item->url ?>"><?php echo $item->title ?></a><br />
<em><?php echo date('F j, Y', strtotime($item->posted)); ?></em><br />
from: <a href=""><?php echo parse_url($item->url, PHP_URL_HOST) ?></a>
</p>
</li>
<?php endforeach; ?>
- <!-- <li class="last"><a href="<?php echo base_url(); ?>packages/browse/official">View All Official Sparks</a></li> -->
+ <li class="last"><a href="<?php echo base_url(); ?>news">See More ...</a></li>
</ul>
</div>
<?php endif; ?>
View
10 static/scripts/site.js
@@ -45,7 +45,15 @@ $(document).ready(function() {
$('.spark-table').children('tbody').children('tr').click(function(ev){
var el = $(ev.currentTarget);
var spark = el.data('spark');
- window.location.href = base_url + 'packages/'+ spark +'/versions/HEAD/show';
+
+ if(spark) {
+ window.location.href = base_url + 'packages/'+ spark +'/versions/HEAD/show';
+ } else {
+ var loc = el.find('a').attr('href');
+ if(loc) {
+ window.location.href = loc;
+ }
+ }
});
});
Please sign in to comment.
Something went wrong with that request. Please try again.