diff --git a/app/Controllers/ProfileController.php b/app/Controllers/ProfileController.php index 91eb4c5..cc5183e 100644 --- a/app/Controllers/ProfileController.php +++ b/app/Controllers/ProfileController.php @@ -17,6 +17,11 @@ class ProfileController { Page::set('Profile/Index'); } + public static function photoindexhistory() + { + Page::set('Profile/LK/PhotoIndexHistory'); + + } public static function upload() { Page::set('Profile/UploadPhoto'); diff --git a/app/Core/Routes.php b/app/Core/Routes.php index e2a0c4b..37128f5 100644 --- a/app/Core/Routes.php +++ b/app/Core/Routes.php @@ -42,7 +42,8 @@ class Routes Router::get('/lk/upload', 'ProfileController@upload'); Router::get('/lk/history', 'ProfileController@lkhistory'); Router::get('/lk/profile', 'ProfileController@lkprofile'); - + Router::get('/lk/pday', 'ProfileController@photoindexhistory'); + Router::get('/fav_authors', 'MainController@favauthors'); Router::get('/search', 'SearchController@i'); diff --git a/ngallery-example.yaml b/ngallery-example.yaml index b3c1d4a..9c95862 100644 --- a/ngallery-example.yaml +++ b/ngallery-example.yaml @@ -47,6 +47,11 @@ ngallery: upload: allow: true photo: + uploadindex: + enabled: false + default: 5 + acceptvalue: 1 + declinevalue: 2 upload: allow: true premoderation: true diff --git a/static/img/scale1.png b/static/img/scale1.png new file mode 100644 index 0000000..61dce7f Binary files /dev/null and b/static/img/scale1.png differ diff --git a/static/js/act.js b/static/js/act.js index ef3d077..42dcb85 100644 --- a/static/js/act.js +++ b/static/js/act.js @@ -6,7 +6,8 @@ function createModal(id, type, value) { ×

Отредактировать комментарий

-
+
  Ctrl + Enter diff --git a/views/pages/Admin/Photo.php b/views/pages/Admin/Photo.php index ab1bfa4..db0adf7 100644 --- a/views/pages/Admin/Photo.php +++ b/views/pages/Admin/Photo.php @@ -94,7 +94,7 @@ use \App\Models\User;