Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Lufi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
40
Issues
40
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fiat Tux
Hat softwares
Lufi
Commits
218c4ad2
Verified
Commit
218c4ad2
authored
Oct 25, 2018
by
Luc Didry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use FiatTux::Themes plugin
parent
d091acb2
Pipeline
#82981
passed with stages
in 3 minutes and 43 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
15 deletions
+3
-15
cpanfile
cpanfile
+1
-0
lib/Lufi.pm
lib/Lufi.pm
+1
-9
lib/Mounter.pm
lib/Mounter.pm
+1
-6
No files found.
cpanfile
View file @
218c4ad2
...
...
@@ -8,6 +8,7 @@ requires 'Mojolicious::Plugin::StaticCache';
requires 'Mojolicious::Plugin::CSPHeader';
requires 'Mojolicious::Plugin::FiatTux::Helpers', '== 0.06', url => 'https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-fiattux-helpers/-/archive/0.06/mojolicious-plugin-fiattux-helpers-0.06.tar.gz';
requires 'Mojolicious::Plugin::FiatTux::GrantAccess', '== 0.05', url => 'https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-fiattux-grantaccess/-/archive/0.05/mojolicious-plugin-fiattux-grantaccess-0.05.tar.gz';
requires 'Mojolicious::Plugin::FiatTux::Themes', '== 0.02', url => 'https://framagit.org/fiat-tux/mojolicious/mojolicious-plugin-fiattux-themes/-/archive/0.02/mojolicious-plugin-fiattux-themes-0.02.tar.gz';
requires 'Filesys::DiskUsage';
requires 'Switch';
requires 'Locale::Maketext';
...
...
lib/Lufi.pm
View file @
218c4ad2
...
...
@@ -51,15 +51,7 @@ sub startup {
# Themes handling
shift
@
{
$self
->
renderer
->
paths
};
shift
@
{
$self
->
static
->
paths
};
if
(
$config
->
{
theme
}
ne
'
default
')
{
my
$theme
=
$self
->
home
->
rel_file
('
themes/
'
.
$config
->
{
theme
});
push
@
{
$self
->
renderer
->
paths
},
$theme
.
'
/templates
'
if
-
d
$theme
.
'
/templates
';
push
@
{
$self
->
static
->
paths
},
$theme
.
'
/public
'
if
-
d
$theme
.
'
/public
';
}
push
@
{
$self
->
renderer
->
paths
},
$self
->
home
->
rel_file
('
themes/default/templates
');
push
@
{
$self
->
static
->
paths
},
$self
->
home
->
rel_file
('
themes/default/public
');
$self
->
plugin
('
FiatTux::Themes
');
# Mail config
my
$mail_config
=
{
...
...
lib/Mounter.pm
View file @
218c4ad2
...
...
@@ -59,12 +59,7 @@ sub startup {
$self
->
plugin
('
Lufi::Plugin::Helpers
');
# Themes handling
shift
@
{
$self
->
static
->
paths
};
if
(
$config
->
{
theme
}
ne
'
default
')
{
my
$theme
=
$self
->
home
->
rel_file
('
themes/
'
.
$config
->
{
theme
});
push
@
{
$self
->
static
->
paths
},
$theme
.
'
/public
'
if
-
d
$theme
.
'
/public
';
}
push
@
{
$self
->
static
->
paths
},
$self
->
home
->
rel_file
('
themes/default/public
');
$self
->
plugin
('
FiatTux::Themes
');
$self
->
plugin
('
Mount
'
=>
{
$config
->
{
prefix
}
=>
File::
Spec
->
catfile
(
$Bin
,
'
..
',
'
script
',
'
application
')});
}
...
...
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