uff muchas cosas, agrege projecto y setup

This commit is contained in:
Daniel Cortés
2019-10-14 22:59:22 -03:00
parent 45a441bb2c
commit a7929c0097
36 changed files with 334 additions and 147 deletions

4
public/css/app.css vendored
View File

@@ -1610,11 +1610,11 @@ article {
=> Buttons & Links
*******************************************************************************/
.admin-link {
.special-link {
color: #ee1155;
}
.admin-link:hover {
.special-link:hover {
color: #ee1155;
border-bottom: 1px #ee1155 solid;
background-color: transparent;

26
public/js/admin.js vendored
View File

@@ -93,27 +93,11 @@
/*! no static exports found */
/***/ (function(module, exports) {
switch (window.location.pathname) {
case "/admin":
document.getElementById("title-link").classList.add("pure-menu-highlight");
break;
case "/admin/posts":
document.getElementById("posts-link").classList.add("pure-menu-highlight");
break;
case "/admin/now":
document.getElementById("now-link").classList.add("pure-menu-highlight");
break;
case "/admin/projects":
document.getElementById("proyectos-link").classList.add("pure-menu-highlight");
break;
case "/admin/setup":
document.getElementById("setup-link").classList.add("pure-menu-highlight");
break;
}
posts_edit_regexp = new RegExp("/admin/posts/\\d+/edit");
now_edit_regexp = new RegExp("/admin/now/\\d+/edit");
projects_edit_regexp = new RegExp("/admin/projects/\\d+/edit");
setups_edit_regexp = new RegExp("/admin/setups/\\d+/edit");
if (window.location.pathname === "/admin/posts" || window.location.pathname === "/admin/posts/create" || window.location.pathname.match(posts_edit_regexp)) document.getElementById("posts-link").classList.add("pure-menu-highlight");else if (window.location.pathname === "/admin/now" || window.location.pathname === "/admin/now/create" || window.location.pathname.match(now_edit_regexp)) document.getElementById("now-link").classList.add("pure-menu-highlight");else if (window.location.pathname === "/admin/projects" || window.location.pathname === "/admin/projects/create" || window.location.pathname.match(projects_edit_regexp)) document.getElementById("projects-link").classList.add("pure-menu-highlight");else if (window.location.pathname === "/admin/setups" || window.location.pathname === "/admin/setups/create" || window.location.pathname.match(setups_edit_regexp)) document.getElementById("setup-link").classList.add("pure-menu-highlight");
/***/ }),

24
public/js/app.js vendored
View File

@@ -94,29 +94,7 @@
/***/ (function(module, exports) {
// Highlight links if in his page
switch (window.location.pathname) {
case "/":
document.getElementById("title-link").classList.add("pure-menu-highlight");
break;
case "/blog":
case "/blog/archive":
document.getElementById("blog-link").classList.add("pure-menu-highlight");
break;
case "/now":
document.getElementById("now-link").classList.add("pure-menu-highlight");
break;
case "/projects":
document.getElementById("proyectos-link").classList.add("pure-menu-highlight");
break;
case "/setup":
document.getElementById("setup-link").classList.add("pure-menu-highlight");
break;
} // Makes all images clickeable
if (window.location.pathname == "/blog" || window.location.pathname == "/blog.archive") document.getElementById("blog-link").classList.add("pure-menu-highlight");else if (window.location.pathname == "/now") document.getElementById("now-link").classList.add("pure-menu-highlight");else if (window.location.pathname == "/projects") document.getElementById("proyectos-link").classList.add("pure-menu-highlight");else if (window.location.pathname == "/setup") document.getElementById("setup-link").classList.add("pure-menu-highlight"); // Makes all images clickeable
var images = document.getElementsByTagName("img");