Browse Source

Should not show Git on profile if no repos exist.

pull/24/head
Brett Bohnenkamper 5 years ago
parent
commit
c36e46a789
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      home/profile.php

+ 3
- 1
home/profile.php View File

@@ -31,8 +31,10 @@ if (isset($_GET['id']))
<li class="list-group-item text-right"><span class="pull-left"><strong>Email</strong></span> <a href="mailto:<?php echo $Profile_User->username; ?>@teknik.io"><?php echo $Profile_User->username; ?>@teknik.io</a></li>
<?php if ($Profile_User->blog_title) { ?>
<li class="list-group-item text-right"><span class="pull-left"><strong>Blog</strong></span> <a href="<?php echo get_page_url('blog', $CONF).'/'.$Profile_User->username; ?>" id="blog_title"><?php echo $Profile_User->blog_title; ?></a></li>
<?php } ?>
<?php if (is_dir("G:\\Repositories\\u\\".$Profile_User->username) && !is_dir_empty("G:\\Repositories\\u\\".$Profile_User->username)) { ?>
<li class="list-group-item text-right"><span class="pull-left"><strong>Git</strong></span> <a href="<?php echo get_page_url('git', $CONF).'/u/'.$Profile_User->username; ?>">Public Repos</a></li>
<?php } ?>
<li class="list-group-item text-right"><span class="pull-left"><strong>Git</strong></span> <a href="<?php echo get_page_url('git', $CONF).'/u/'.$Profile_User->username; ?>">Public Repos</a></li>
<?php if ($own_profile) { ?>
<li class="list-group-item text-center"><button type="button" class="btn btn-danger" id="delete_account">Delete Account</button></li>
<?php } ?>

Loading…
Cancel
Save