Skip to content

Commit

Permalink
Merge pull request #31 from Flynntes/dev
Browse files Browse the repository at this point in the history
Fixing GitHub Issues
  • Loading branch information
Flynntes committed Jan 8, 2020
2 parents 4f7c05f + b89e173 commit 400b68f
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 4 deletions.
9 changes: 9 additions & 0 deletions sleeky-backend/assets/css/_base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,11 @@ code {
padding: 0px 10px !important;
}

body > div > pre {
overflow-x: scroll;
padding-left: 290px;
}

// End General Styles


Expand Down Expand Up @@ -936,4 +941,8 @@ code {
}
}
}

body > div > pre {
padding-left: 20px;
}
}
2 changes: 1 addition & 1 deletion sleeky-backend/assets/css/dark.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sleeky-backend/assets/css/light.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion sleeky-backend/assets/js/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ $( document ).ready(function() {
$("#wrap").prepend(`<div class="nav-open" id="navOpen"><i class="material-icons">menu</i></div>`);

// Add frontend link
$('#admin_menu').append('<li class="admin_menu_toplevel"><a href="/"><i class="material-icons">arrow_back</i> Frontend Interface</a></li>');
$('#admin_menu').append('<li class="admin_menu_toplevel frontend_link"><a href="/"><i class="material-icons">arrow_back</i> Frontend Interface</a></li>');

// admin_menu
$('#navOpen').on('click', function() {
Expand Down
7 changes: 7 additions & 0 deletions sleeky-backend/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,4 +137,11 @@ function sleeky_settings_update() {
}

}
}

// Hide admin links for non-authenticated users
if (yourls_is_valid_user() != 1) {
echo <<<HEAD
<style>ul#admin_menu li:not(.frontend_link) {display: none}</style>
HEAD;
}
2 changes: 1 addition & 1 deletion sleeky-frontend/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<div class="container verticle-center">
<div class="main-content">
<div class="close noselect">
<a href="<?php echo siteURL ?>"><i class="material-icons">close</i></a>
<a href="javascript:window.location.href=window.location.href;"><i class="material-icons">close</i></a>
</div>
<section class="head">
<h2>YOUR SHORTENED LINK:</h2>
Expand Down

0 comments on commit 400b68f

Please sign in to comment.