Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Paulo Roberto Pereira da Silva
Script Customization Zammad
Commits
271277c8
Commit
271277c8
authored
Sep 28, 2022
by
Paulo Pereira
Browse files
Adiciona dashboard file e feedbacks no std-customization file
parent
b1c8530e
Changes
2
Hide whitespace changes
Inline
Side-by-side
customized-files/dashboard.jst.eco
0 → 100644
View file @
271277c8
<div class="dashboard main flex center">
<div class="tabs tabs--big">
<div class="tab active" data-area="stat-widgets"><%- @T('My Stats') %></div>
</div>
<div class="tab-content first-steps-widgets hidden"></div>
<div class="tab-content stat-widgets three-columns horizontal"></div>
</div>
<div class="sidebar optional">
<h2><%- @T('Activity Stream') %></h2>
<div class="activity-description">
<p><%- @T('Here you will find the latest activities of your system.') %></p>
<p><%- @T('For example, recently changed tickets, users, or organizations.') %></p>
</div>
<div class="activity-entries js-activityContent">
<p><%- @T('Here you will find the latest activities of your system.') %></p>
<p><%- @T('For example, recently changed tickets, users, or organizations.') %></p>
</div>
</div>
\ No newline at end of file
std-customization.sh
View file @
271277c8
...
@@ -7,21 +7,25 @@ then
...
@@ -7,21 +7,25 @@ then
echo
"Rails Container is not running"
echo
"Rails Container is not running"
else
else
BASE_DIR_ZAMMAD
=
$(
docker inspect
$CONTAINER_ID
|
grep
'"Source":'
|
awk
{
'print $2'
}
|
tr
-d
'"'
|
tr
-d
','
)
BASE_DIR_ZAMMAD
=
$(
docker inspect
$CONTAINER_ID
|
grep
'"Source":'
|
awk
{
'print $2'
}
|
tr
-d
'"'
|
tr
-d
','
)
docker
exec
$CONTAINER_ID
sed
-ie
'4d'
/opt/zammad/app/assets/javascripts/app/views/dashboard.jst.eco
cp
customized-files/index.html.erb
$BASE_DIR_ZAMMAD
/app/views/knowledge_base/public/categories/index.html.erb
echo
-e
"[DOWNLOADING IMAGES...]
$(
date
)
"
cp
customized-files/UFRPE_Digital-08.png
$BASE_DIR_ZAMMAD
/public/assets/images/UFRPE_Digital-08.png
cp
customized-files/UFRPE_Digital-08.png
$BASE_DIR_ZAMMAD
/public/assets/images/UFRPE_Digital-08.png
cp
customized-files/std-fundo_azulescuro.JPG
$BASE_DIR_ZAMMAD
/public/assets/images/std-fundo_azulescuro.JPG
cp
customized-files/std-fundo_azulescuro.JPG
$BASE_DIR_ZAMMAD
/public/assets/images/std-fundo_azulescuro.JPG
cp
customized-files/login.jst.eco
$BASE_DIR_ZAMMAD
/app/assets/javascripts/app/views/login.jst.eco
echo
-e
"
\n\n
[COPYING CUSTOMIZED FILES TO CONTAINER'S VOLUME...]
$(
date
)
"
cp
customized-files/index.html.erb
$BASE_DIR_ZAMMAD
/app/views/knowledge_base/public/categories/index.html.erb
cp
customized-files/dashboard.jst.eco
$BASE_DIR_ZAMMAD
/app/assets/javascripts/app/views/dashboard.jst.eco
cp
customized-files/login.jst.eco
$BASE_DIR_ZAMMAD
/app/assets/javascripts/app/views/login.jst.eco
cp
customized-files/custom.css
$BASE_DIR_ZAMMAD
/app/assets/stylesheets/custom/custom.css
cp
customized-files/custom.css
$BASE_DIR_ZAMMAD
/app/assets/stylesheets/custom/custom.css
echo
-e
"
\n\n
[INSTALLING NODEJS...]
$(
date
)
"
docker
exec
-u
root
$CONTAINER_ID
bash
-c
"apt update && apt install -y nodejs"
docker
exec
-u
root
$CONTAINER_ID
bash
-c
"apt update && apt install -y nodejs"
echo
-e
"
\n\n
[COMPILING ASSETS...]
$(
date
)
"
docker
exec
$CONTAINER_ID
rake assets:precompile
docker
exec
$CONTAINER_ID
rake assets:precompile
echo
-e
"
\n\n
[RESTARTING CONTAINER...]
$(
date
)
"
docker restart
$CONTAINER_ID
docker restart
$CONTAINER_ID
echo
-e
"
\n\n
[FINISHED!]
$(
date
)
"
fi
fi
\ No newline at end of file
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