Skip to content
Browse files

Some housekeeping in regard to CloudManic's awesome pull request

  • Loading branch information...
1 parent f2018b9 commit 473bca2c91d8dbd5a9a13be433493998d70e563a @katzgrau committed Nov 23, 2011
View
2 application/views/packages/add.php
@@ -35,7 +35,7 @@
<select name="fork_id" id="repository_type" class="drop-down drop-down-small">
<option value="0">Not a Fork</option>
<?php foreach($sparkslist AS $key => $row) : ?>
- <option value="<?=$key?>" <?php if(set_value('fork_id') == $key) echo 'selected'; ?>><?=$row?></option>
+ <option value="<?php echo $key ?>" <?php if(set_value('fork_id') == $key) echo 'selected'; ?>><?php echo $row ?></option>
<?php endforeach; ?>
</select><br class="clear" />
<span class="helper">If this is a fork of another spark select the parent spark.</span><br class="clear" />
View
2 application/views/packages/edit.php
@@ -37,7 +37,7 @@
<select name="fork_id" id="repository_type" class="drop-down drop-down-small">
<option value="0">Not a Fork</option>
<?php foreach($sparkslist AS $key => $row) : ?>
- <option value="<?=$key?>" <?php if(set_value('fork_id', $contribution->fork_id) == $key) echo 'selected'; ?>><?=$row?></option>
+ <option value="<?php echo $key ?>" <?php if(set_value('fork_id', $contribution->fork_id) == $key) echo 'selected'; ?>><?php echo $row ?></option>
<?php endforeach; ?>
</select><br class="clear" />
<span class="helper">If this is a fork of another spark select the parent spark.</span><br class="clear" />
View
8 application/views/packages/show.php
@@ -171,7 +171,7 @@
</ul>
<?php if(count($forks) > 0) : ?>
- <h2>Other Versions</h2>
+ <h2><?php echo ($contribution->fork_id > 0 ? "Alternate Verions of " : "Forks of ") . $contribution->name; ?></h2>
<ul>
<?php
foreach($forks AS $key => $row) :
@@ -183,12 +183,6 @@
</li>
<?php endforeach; ?>
</ul>
-
- <?php if($contribution->fork_id > 0) : ?>
- <p>Above are alternative versions of <?php echo $contribution->name; ?>.</p>
- <?php else : ?>
- <p>Above are other forks of <?php echo $contribution->name; ?>.</p>
- <?php endif; ?>
<?php endif; ?>
<h2>Comments</h2>

0 comments on commit 473bca2

Please sign in to comment.
Something went wrong with that request. Please try again.