Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
日本語対応Mailman POEM版
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yasuhito FUTATSUKI
日本語対応Mailman POEM版
Commits
166ea4ff
Commit
166ea4ff
authored
10 years ago
by
Mark Sapiro
Browse files
Options
Downloads
Patches
Plain Diff
Implement a new WEB_HEAD_ADD setting to specify text to be added to the
<HEAD> section of Mailman's internally generated web pages.
parent
ed89986a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Mailman/Defaults.py.in
+15
-1
15 additions, 1 deletion
Mailman/Defaults.py.in
Mailman/htmlformat.py
+3
-1
3 additions, 1 deletion
Mailman/htmlformat.py
NEWS
+5
-0
5 additions, 0 deletions
NEWS
with
23 additions
and
2 deletions
Mailman/Defaults.py.in
+
15
−
1
View file @
166ea4ff
# -*- python -*-
# Copyright (C) 1998-201
4
by the Free Software Foundation, Inc.
# Copyright (C) 1998-201
5
by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -224,6 +224,20 @@ WEB_VLINK_COLOR = '' # If true, forces VLINK=
WEB_HIGHLIGHT_COLOR
=
'
#dddddd
'
# If true, alternating rows
# in listinfo & admin display
# If you wish to include extra elements in the <HEAD> section of Mailman's
# web pages, e.g. style information or a link to a style sheet, you can set
# the following. For example, to include a css style sheet reference, you
# can put in mm_cfg.py
# WEB_HEAD_ADD = """<LINK REL=stylesheet
# TYPE="text/css"
# HREF="path or URL"
# >"""
# You can specify anything that is allowed in the <HEAD> section. The default
# is to not add anything. This only applies to internally generated pages.
# For pages built from templates you can create custom templates containing
# this information.
WEB_HEAD_ADD
=
None
# User entered data is escaped for redisplay in web responses to avoid Cross
# Site Scripting (XSS) attacks. The normal escaping replaces the characters
# <, >, & and " with the respective HTML entities <, >, & and
...
...
This diff is collapsed.
Click to expand it.
Mailman/htmlformat.py
+
3
−
1
View file @
166ea4ff
# Copyright (C) 1998-201
4
by the Free Software Foundation, Inc.
# Copyright (C) 1998-201
5
by the Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
...
...
@@ -318,6 +318,8 @@ class Document(Container):
'
content=
"
text/html; charset=%s
"
>
'
%
charset
)
if
self
.
title
:
output
.
append
(
'
%s<TITLE>%s</TITLE>
'
%
(
tab
,
self
.
title
))
if
mm_cfg
.
WEB_HEAD_ADD
:
output
.
append
(
mm_cfg
.
WEB_HEAD_ADD
)
output
.
append
(
'
%s</HEAD>
'
%
tab
)
quals
=
[]
# Default link colors
...
...
This diff is collapsed.
Click to expand it.
NEWS
+
5
−
0
View file @
166ea4ff
...
...
@@ -9,6 +9,11 @@ Here is a history of user visible changes to Mailman.
New Features
- There is a new WEB_HEAD_ADD setting to specify text to be added to the
<HEAD> section of Mailman's internally generated web pages. This doesn't
apply to pages built from templates, but in those cases, custom templates
can be created. (LP: #1409396)
- There is a new DEFAULT_SUBSCRIBE_OR_INVITE setting. Set this to Yes
to make the default selection on the admin Mass Subscriptions page
Invite rather than Subscribe. (LP: #1404511)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment