mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
fix formatting issues
Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
1 parent
fa74a26042
commit
eb83e00011
134 files changed
+598
-720
No files matched your search
@@ -14,7 +14,6 @@
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
"""
|
||||
Forms for security module
|
||||
"""
|
||||
|
||||
@@ -20,8 +20,7 @@ Application manifest for security.
|
||||
|
||||
from plinth.modules.backups.api import validate as validate_backup
|
||||
|
||||
backup = validate_backup({
|
||||
'config': {
|
||||
backup = validate_backup(
|
||||
{'config': {
|
||||
'files': ['/etc/security/access.d/50freedombox.conf']
|
||||
}
|
||||
})
|
||||
}})
|
||||
@@ -14,7 +14,6 @@
|
||||
# You should have received a copy of the GNU Affero General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
"""
|
||||
URLs for the security module
|
||||
"""
|
||||
@@ -23,7 +22,6 @@ from django.conf.urls import url
|
||||
|
||||
from . import views
|
||||
|
||||
|
||||
urlpatterns = [
|
||||
url(r'^sys/security/$', views.index, name='index'),
|
||||
url(r'^sys/security/report$', views.report, name='report'),
|
||||
|
||||
@@ -43,15 +43,11 @@ def index(request):
|
||||
else:
|
||||
form = SecurityForm(initial=status, prefix='security')
|
||||
|
||||
return TemplateResponse(
|
||||
request, 'security.html', {
|
||||
'name':
|
||||
_('Security'),
|
||||
'manual_page':
|
||||
security.manual_page,
|
||||
'form':
|
||||
form,
|
||||
})
|
||||
return TemplateResponse(request, 'security.html', {
|
||||
'name': _('Security'),
|
||||
'manual_page': security.manual_page,
|
||||
'form': form,
|
||||
})
|
||||
|
||||
|
||||
def get_status(request):
|
||||
|
||||
Reference in new issue
Block a user