21
.github/workflows/ci.yml
vendored
21
.github/workflows/ci.yml
vendored
@@ -38,10 +38,25 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: '12'
|
node-version: '12'
|
||||||
check-latest: true
|
check-latest: true
|
||||||
|
- name: setup cache for bench
|
||||||
|
uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: ~/bench-cache
|
||||||
|
key: ${{ runner.os }}
|
||||||
- name: install bench
|
- name: install bench
|
||||||
run: pip3 install frappe-bench
|
run: |
|
||||||
|
pip3 install frappe-bench
|
||||||
|
which bench
|
||||||
- name: bench init
|
- name: bench init
|
||||||
run: bench init ~/frappe-bench --skip-redis-config-generation
|
run: |
|
||||||
|
if [ -d ~/bench-cache/bench.tgz ]
|
||||||
|
then
|
||||||
|
(cd && tar xzf ~/bench-cache/bench.tgz)
|
||||||
|
else
|
||||||
|
bench init ~/frappe-bench --skip-redis-config-generation
|
||||||
|
mkdir -p ~/bench-cache
|
||||||
|
(cd && tar czf ~/bench-cache/bench.tgz frappe-bench)
|
||||||
|
fi
|
||||||
- name: add community app to bench
|
- name: add community app to bench
|
||||||
working-directory: /home/runner/frappe-bench
|
working-directory: /home/runner/frappe-bench
|
||||||
run: bench get-app community $GITHUB_WORKSPACE
|
run: bench get-app community $GITHUB_WORKSPACE
|
||||||
@@ -50,7 +65,7 @@ jobs:
|
|||||||
run: bench new-site --mariadb-root-password root --admin-password admin frappe.local
|
run: bench new-site --mariadb-root-password root --admin-password admin frappe.local
|
||||||
- name: install community app
|
- name: install community app
|
||||||
working-directory: /home/runner/frappe-bench
|
working-directory: /home/runner/frappe-bench
|
||||||
run: bench --site frappe.local install-app community
|
run: bench --verbose --site frappe.local install-app community
|
||||||
- name: allow tests
|
- name: allow tests
|
||||||
working-directory: /home/runner/frappe-bench
|
working-directory: /home/runner/frappe-bench
|
||||||
run: bench --site frappe.local set-config allow_tests true
|
run: bench --site frappe.local set-config allow_tests true
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
from . import __version__ as app_version
|
from . import __version__ as app_version
|
||||||
import os
|
from .install import APP_LOGO_URL
|
||||||
|
|
||||||
app_name = "community"
|
app_name = "community"
|
||||||
app_title = "Community"
|
app_title = "Community"
|
||||||
@@ -12,7 +12,7 @@ app_color = "grey"
|
|||||||
app_email = "jannat@erpnext.com"
|
app_email = "jannat@erpnext.com"
|
||||||
app_license = "AGPL"
|
app_license = "AGPL"
|
||||||
|
|
||||||
app_logo_url = os.getenv("APP_LOGO_URL") or "/files/logo.png"
|
app_logo_url = APP_LOGO_URL
|
||||||
|
|
||||||
# Includes in <head>
|
# Includes in <head>
|
||||||
# ------------------
|
# ------------------
|
||||||
|
|||||||
@@ -3,9 +3,13 @@
|
|||||||
import os
|
import os
|
||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
|
APP_LOGO_URL = os.getenv("APP_LOGO_URL") or "/files/logo.png"
|
||||||
|
|
||||||
def after_install():
|
def after_install():
|
||||||
set_app_name()
|
set_app_name()
|
||||||
disable_signup()
|
disable_signup()
|
||||||
|
add_header_items()
|
||||||
|
add_footer_items()
|
||||||
|
|
||||||
def set_app_name():
|
def set_app_name():
|
||||||
app_name = os.getenv("FRAPPE_APP_NAME")
|
app_name = os.getenv("FRAPPE_APP_NAME")
|
||||||
@@ -14,3 +18,25 @@ def set_app_name():
|
|||||||
|
|
||||||
def disable_signup():
|
def disable_signup():
|
||||||
frappe.db.set_value("Website Settings", None, "disable_signup", 1)
|
frappe.db.set_value("Website Settings", None, "disable_signup", 1)
|
||||||
|
|
||||||
|
def add_header_items():
|
||||||
|
items = [
|
||||||
|
{"label": "Sketches", "url": "/sketches"},
|
||||||
|
]
|
||||||
|
doc = frappe.get_doc("Website Settings", None)
|
||||||
|
doc.update({
|
||||||
|
"top_bar_items": items
|
||||||
|
})
|
||||||
|
doc.save()
|
||||||
|
|
||||||
|
def add_footer_items():
|
||||||
|
items = [
|
||||||
|
{"label": "About", "url": "/about"},
|
||||||
|
{"label": "Blog", "url": "/blog"},
|
||||||
|
{"label": "Github", "url": "https://github.com/fossunited/community"}
|
||||||
|
]
|
||||||
|
doc = frappe.get_doc("Website Settings", None)
|
||||||
|
doc.update({
|
||||||
|
"footer_items": items
|
||||||
|
})
|
||||||
|
doc.save()
|
||||||
|
|||||||
@@ -102,3 +102,23 @@ section.lightgray {
|
|||||||
width: 40%;
|
width: 40%;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer-grouped-links {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-info {
|
||||||
|
border-top: 0px;
|
||||||
|
margin-top: 0px;
|
||||||
|
|
||||||
|
.footer-col-right {
|
||||||
|
padding-top: 1.8rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.web-footer {
|
||||||
|
border-top: 1px solid #E2E6E9;
|
||||||
|
padding: 0px;
|
||||||
|
padding: 2rem 0px;
|
||||||
|
margin-top: 2rem;
|
||||||
|
}
|
||||||
|
|||||||
29
community/public/images/fossunited-logo.svg
Normal file
29
community/public/images/fossunited-logo.svg
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<svg width="104px" height="81px" viewBox="0 0 104 81" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||||
|
<!-- Generator: Sketch 61.2 (89653) - https://sketch.com -->
|
||||||
|
<title>Group 2</title>
|
||||||
|
<desc>Created with Sketch.</desc>
|
||||||
|
<g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
||||||
|
<g id="site" transform="translate(-160.803147, -89.000000)">
|
||||||
|
<g id="Group-2" transform="translate(163.323899, 91.260768)">
|
||||||
|
<g id="g1593" transform="translate(10.217829, 8.684369)" fill="black" fill-rule="nonzero">
|
||||||
|
<g id="text1571" transform="translate(0.248104, 0.000000)">
|
||||||
|
<polygon id="path1919" points="6.20610364 30.6588166 0.0881167018 30.6588166 0.0881167018 0.711614981 15.1331308 0.711614981 15.1331308 6.82960641 6.20610364 6.82960641 6.20610364 12.6143164 15.1331308 12.6143164 15.1331308 18.7323078 6.20610364 18.7323078"></polygon>
|
||||||
|
<path d="M24.0601557,24.5170177 L29.8448702,24.5170177 L29.8448702,6.82960641 L24.0601557,6.82960641 L24.0601557,24.5170177 Z M20.917843,30.6588166 L20.917843,27.6593507 L17.9421688,27.6593507 L17.9421688,3.68729595 L20.917843,3.68729595 L20.917843,0.711614981 L32.9871829,0.711614981 L32.9871829,3.68729595 L35.9628571,3.68729595 L35.9628571,27.6593507 L32.9871829,27.6593507 L32.9871829,30.6588166 L20.917843,30.6588166 Z M18.108805,0.806844685 L20.917843,0.806844685 L20.917843,3.68729595 L18.108805,3.68729595 L18.108805,0.806844685 Z M32.9871829,0.711525057 L35.9628571,0.711525057 L35.9628571,3.68720602 L32.9871829,3.68720602 L32.9871829,0.711525057 Z M32.9871829,27.6592608 L35.9628571,27.6592608 L35.9628571,30.5635195 L32.9871829,30.5635195 L32.9871829,27.6592608 Z M17.9421688,27.6592608 L20.917843,27.6592608 L20.917843,30.6587267 L17.9421688,30.6587267 L17.9421688,27.6592608 Z" id="path1921"></path>
|
||||||
|
<path d="M53.8169092,30.6588166 L38.7718951,30.6588166 L38.7718951,24.5170177 L50.6745942,24.5170177 L50.6745942,18.7323078 L41.7475693,18.7323078 L41.7475693,15.7566493 L38.7718951,15.7566493 L38.7718951,3.68729595 L41.7475693,3.68729595 L41.7475693,0.711614981 L56.7925834,0.711614981 L56.7925834,6.82960641 L44.889882,6.82960641 L44.889882,12.6143164 L53.8169092,12.6143164 L53.8169092,15.5899973 L56.7925834,15.5899973 L56.7925834,27.6593507 L53.8169092,27.6593507 L53.8169092,30.6588166 Z M38.9385313,0.806844685 L41.7475693,0.806844685 L41.7475693,3.68729595 L38.9385313,3.68729595 L38.9385313,0.806844685 Z M38.7719018,15.7566493 L41.747576,15.7566493 L41.747576,18.7323078 L38.7719018,18.7323078 L38.7719018,15.7566493 Z M53.8169159,12.6143164 L56.7925901,12.6143164 L56.7925901,15.5899973 L53.8169159,15.5899973 L53.8169159,12.6143164 Z M53.8169159,27.6593507 L56.7925901,27.6593507 L56.7925901,30.5636094 L53.8169159,30.5636094 L53.8169159,27.6593507 Z" id="path1923"></path>
|
||||||
|
<path d="M74.64664,30.6588166 L59.6016259,30.6588166 L59.6016259,24.5170177 L71.5043273,24.5170177 L71.5043273,18.7323078 L62.5773023,18.7323078 L62.5773023,15.7566493 L59.6016259,15.7566493 L59.6016259,3.68729595 L62.5773023,3.68729595 L62.5773023,0.711614981 L77.6223164,0.711614981 L77.6223164,6.82960641 L65.7196151,6.82960641 L65.7196151,12.6143164 L74.64664,12.6143164 L74.64664,15.5899973 L77.6223164,15.5899973 L77.6223164,27.6593507 L74.64664,27.6593507 L74.64664,30.6588166 Z M59.7682644,0.806844685 L62.5773023,0.806844685 L62.5773023,3.68729595 L59.7682644,3.68729595 L59.7682644,0.806844685 Z M59.6016349,15.7566493 L62.5773113,15.7566493 L62.5773113,18.7323078 L59.6016349,18.7323078 L59.6016349,15.7566493 Z M74.646649,12.6143164 L77.6223254,12.6143164 L77.6223254,15.5899973 L74.646649,15.5899973 L74.646649,12.6143164 Z M74.646649,27.6593507 L77.6223254,27.6593507 L77.6223254,30.5636094 L74.646649,30.5636094 L74.646649,27.6593507 Z" id="path1925"></path>
|
||||||
|
</g>
|
||||||
|
<g id="text1575" transform="translate(0.127883, 35.473579)">
|
||||||
|
<path d="M2.35734791,22.5432945 L2.35734791,20.3720424 L0.206884567,20.3720424 L0.206884567,0.865355398 L4.62823747,0.865355398 L4.62823747,18.0974048 L8.80873794,18.0974048 L8.80873794,0.865355398 L13.2300908,0.865355398 L13.2300908,20.3720424 L11.0796275,20.3720424 L11.0796275,22.5432945 L2.35734791,22.5432945 Z M0.206884567,20.3720424 L2.35734791,20.3720424 L2.35734791,22.5432945 L0.206884567,22.5432945 L0.206884567,20.3720424 Z M11.0796275,20.3720424 L13.2300908,20.3720424 L13.2300908,22.4743558 L11.0796275,22.4743558 L11.0796275,20.3720424 Z" id="path1928"></path>
|
||||||
|
<polygon id="path1930" points="19.6814809 22.5432945 15.260128 22.5432945 15.260128 0.865355398 28.2833343 0.865355398 28.2833343 22.5432945 23.8619814 22.5432945 23.8619814 5.29401037 19.6814809 5.29401037"></polygon>
|
||||||
|
<polygon id="path1932" points="34.7347243 22.5432945 30.3133714 22.5432945 30.3133714 0.865355398 34.7347243 0.865355398"></polygon>
|
||||||
|
<polygon id="path1934" points="45.4870433 22.5432945 41.0656904 22.5432945 41.0656904 5.29401037 36.7647637 5.29401037 36.7647637 0.865355398 49.7879699 0.865355398 49.7879699 5.29401037 45.4870433 5.29401037"></polygon>
|
||||||
|
<polygon id="path1936" points="62.6907478 22.5432945 51.8180048 22.5432945 51.8180048 0.865355398 62.6907478 0.865355398 62.6907478 5.29401037 56.2393577 5.29401037 56.2393577 9.48138012 62.6907478 9.48138012 62.6907478 13.9100351 56.2393577 13.9100351 56.2393577 18.0974048 62.6907478 18.0974048"></polygon>
|
||||||
|
<path d="M69.1421378,18.0974048 L73.3226383,18.0974048 L73.3226383,5.29401037 L69.1421378,5.29401037 L69.1421378,18.0974048 Z M64.7207849,22.5432945 L64.7207849,0.865355398 L75.5935278,0.865355398 L75.5935278,3.01937283 L77.7439912,3.01937283 L77.7439912,20.3720424 L75.5935278,20.3720424 L75.5935278,22.5432945 L64.7207849,22.5432945 Z" id="path1938"></path>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
<rect id="rect1579" stroke="black" stroke-width="3.99998745" x="0" y="0" width="98.6425638" height="76.0972583"></rect>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</g>
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 6.1 KiB |
14
community/templates/includes/footer/footer_info.html
Normal file
14
community/templates/includes/footer/footer_info.html
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
<div class="footer-info">
|
||||||
|
<div class="row">
|
||||||
|
<div class="footer-col-left col-sm-6 col-12">
|
||||||
|
<img src="/assets/community/images/fossunited-logo.svg" style="width: 50px;">
|
||||||
|
</div>
|
||||||
|
{# powered #}
|
||||||
|
<div class="footer-col-right col-sm-6 col-12 footer-powered">
|
||||||
|
{% block powered %}
|
||||||
|
{% include "templates/includes/footer/footer_powered.html" %}
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
<div class="footer-logo-extension">
|
||||||
|
<div class="row">
|
||||||
|
<div class="text-left col-6">
|
||||||
|
<h3>Mon School</h3>
|
||||||
|
</div>
|
||||||
|
<div class="text-right col-6">
|
||||||
|
{% block extension %}
|
||||||
|
{% include "templates/includes/footer/footer_extension.html" %}
|
||||||
|
{% endblock %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Reference in New Issue
Block a user