Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
MetaGer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
55
Issues
55
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
open-source
MetaGer
Commits
1bf12c76
Commit
1bf12c76
authored
Apr 08, 2019
by
Dominik Hebeler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed positioning of subpages
parent
b83c8c88
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
45 additions
and
4 deletions
+45
-4
app/Http/Controllers/SettingsController.php
app/Http/Controllers/SettingsController.php
+22
-0
resources/lang/de/titles.php
resources/lang/de/titles.php
+1
-0
resources/less/metager/pages/resultpage/result-page.less
resources/less/metager/pages/resultpage/result-page.less
+1
-1
resources/less/metager/pages/start-page.less
resources/less/metager/pages/start-page.less
+3
-2
resources/views/parts/filter.blade.php
resources/views/parts/filter.blade.php
+5
-1
resources/views/settings/index.blade.php
resources/views/settings/index.blade.php
+11
-0
routes/cookie.php
routes/cookie.php
+2
-0
No files found.
app/Http/Controllers/SettingsController.php
0 → 100644
View file @
1bf12c76
<?php
namespace
App\Http\Controllers
;
use
\
Illuminate\Http\Request
;
class
SettingsController
extends
Controller
{
public
function
index
(
Request
$request
)
{
$fokus
=
$request
->
input
(
'fokus'
,
''
);
if
(
empty
(
$fokus
))
{
return
redirect
(
'/'
);
}
else
{
$fokus
=
trans
(
'index.foki.'
.
$fokus
);
}
return
view
(
'settings.index'
)
->
with
(
'title'
,
trans
(
'titles.settings'
,
[
'fokus'
=>
$fokus
]))
->
with
(
'fokus'
,
$fokus
);
}
}
resources/lang/de/titles.php
View file @
1bf12c76
...
@@ -24,4 +24,5 @@ return [
...
@@ -24,4 +24,5 @@ return [
'asso'
=>
'Assoziator - MetaGer'
,
'asso'
=>
'Assoziator - MetaGer'
,
'plugin'
=>
'Plugin - MetaGer'
,
'plugin'
=>
'Plugin - MetaGer'
,
'key'
=>
'Mitgliederschlüssel - MetaGer'
,
'key'
=>
'Mitgliederschlüssel - MetaGer'
,
'settings'
=>
'Sucheinstellungen (:fokus)'
,
];
];
resources/less/metager/pages/resultpage/result-page.less
View file @
1bf12c76
...
@@ -574,7 +574,7 @@ a {
...
@@ -574,7 +574,7 @@ a {
margin-top: 4px;
margin-top: 4px;
text-align: center;
text-align: center;
>
a
{
>
form>button
{
color: #777;
color: #777;
&:hover {
&:hover {
color: red;
color: red;
...
...
resources/less/metager/pages/start-page.less
View file @
1bf12c76
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
flex-grow: 1;
flex-grow: 1;
display: flex;
display: flex;
flex-direction: column;
flex-direction: column;
justify-content: center
;
margin-top: 5vh
;
@media(max-width: @main-content-width) {
@media(max-width: @main-content-width) {
width: 100%;
width: 100%;
}
}
...
@@ -33,7 +33,6 @@
...
@@ -33,7 +33,6 @@
width: 30px;
width: 30px;
height: 30px;
height: 30px;
align-items: center;
align-items: center;
justify-content: center;
display: none;
display: none;
&:hover{
&:hover{
color: red;
color: red;
...
@@ -47,6 +46,8 @@
...
@@ -47,6 +46,8 @@
}
}
.startpage #main-content {
.startpage #main-content {
justify-content: center;
margin-top: 0;
@media(max-width: @screen-mobile){
@media(max-width: @screen-mobile){
justify-content: start;
justify-content: start;
margin-top: 20vh;
margin-top: 20vh;
...
...
resources/views/parts/filter.blade.php
View file @
1bf12c76
...
@@ -39,7 +39,11 @@
...
@@ -39,7 +39,11 @@
<
div
class
=
"scrollfade-right"
></
div
>
<
div
class
=
"scrollfade-right"
></
div
>
</
div
>
</
div
>
<
div
id
=
"settings"
>
<
div
id
=
"settings"
>
<
a
href
=
"#"
>
Sucheinstellungen
</
a
>
<
form
action
=
"{{ LaravelLocalization::getLocalizedURL(LaravelLocalization::getCurrentLocale(), route('settings')) }}"
method
=
"post"
>
<
input
type
=
"hidden"
name
=
"fokus"
value
=
"{{
$metager->getFokus
() }}"
>
<
input
type
=
"hidden"
name
=
"url"
value
=
"{{ url()->full() }}"
>
<
button
type
=
"submit"
>
Sucheinstellungen
</
button
>
</
form
>
</
div
>
</
div
>
</
div
>
</
div
>
@
endif
@
endif
resources/views/settings/index.blade.php
0 → 100644
View file @
1bf12c76
@
extends
(
'layouts.subPages'
)
@
section
(
'title'
,
$title
)
@
section
(
'content'
)
<
div
class
=
"card-heavy"
>
<
h2
>
Sucheinstellungen
({{
$fokus
}})
</
h2
>
<
p
>
Hier
können
Sie
Sucheinstellungen
für
Ihre
MetaGer
Suche
im
Fokus
{{
$fokus
}}
vornehmen
.
Diese
bleiben
solange
gespeichert
,
wie
Sie
Cookies
im
Browser
speichern
.
</
p
>
</
div
>
@
endsection
routes/cookie.php
View file @
1bf12c76
...
@@ -9,5 +9,7 @@ Route::group(
...
@@ -9,5 +9,7 @@ Route::group(
Route
::
get
(
'meta/key'
,
"KeyController@index"
);
Route
::
get
(
'meta/key'
,
"KeyController@index"
);
Route
::
post
(
'meta/key'
,
'KeyController@setKey'
);
Route
::
post
(
'meta/key'
,
'KeyController@setKey'
);
Route
::
post
(
'meta/key/remove'
,
'KeyController@removeKey'
);
Route
::
post
(
'meta/key/remove'
,
'KeyController@removeKey'
);
Route
::
post
(
'meta/settings'
,
'SettingsController@index'
)
->
name
(
'settings'
);
}
}
);
);
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment