Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
MetaGer
Commits
1bf12c76
Commit
1bf12c76
authored
Apr 08, 2019
by
Dominik Hebeler
Browse files
Changed positioning of subpages
parent
b83c8c88
Changes
7
Hide whitespace changes
Inline
Side-by-side
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 [
'asso'
=>
'Assoziator - MetaGer'
,
'plugin'
=>
'Plugin - MetaGer'
,
'key'
=>
'Mitgliederschlüssel - MetaGer'
,
'settings'
=>
'Sucheinstellungen (:fokus)'
,
];
resources/less/metager/pages/resultpage/result-page.less
View file @
1bf12c76
...
...
@@ -574,7 +574,7 @@ a {
margin-top: 4px;
text-align: center;
>
a
{
>
form>button
{
color: #777;
&:hover {
color: red;
...
...
resources/less/metager/pages/start-page.less
View file @
1bf12c76
...
...
@@ -6,7 +6,7 @@
flex-grow: 1;
display: flex;
flex-direction: column;
justify-content: center
;
margin-top: 5vh
;
@media(max-width: @main-content-width) {
width: 100%;
}
...
...
@@ -33,7 +33,6 @@
width: 30px;
height: 30px;
align-items: center;
justify-content: center;
display: none;
&:hover{
color: red;
...
...
@@ -47,6 +46,8 @@
}
.startpage #main-content {
justify-content: center;
margin-top: 0;
@media(max-width: @screen-mobile){
justify-content: start;
margin-top: 20vh;
...
...
resources/views/parts/filter.blade.php
View file @
1bf12c76
...
...
@@ -39,7 +39,11 @@
<
div
class
=
"scrollfade-right"
></
div
>
</
div
>
<
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
>
@
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(
Route
::
get
(
'meta/key'
,
"KeyController@index"
);
Route
::
post
(
'meta/key'
,
'KeyController@setKey'
);
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