mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-08-26 12:46:08 +00:00
cockpit: Add short description to frontpage shortcut
Signed-off-by: Joseph Nuthalapati <njoseph@thoughtworks.com> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
parent
fe23a82b0f
commit
ad07e717ae
@ -14,7 +14,6 @@
|
|||||||
# You should have received a copy of the GNU Affero General Public License
|
# 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/>.
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Plinth module to configure Cockpit.
|
Plinth module to configure Cockpit.
|
||||||
"""
|
"""
|
||||||
@ -102,7 +101,9 @@ def setup(helper, old_version=None):
|
|||||||
|
|
||||||
def add_shortcut():
|
def add_shortcut():
|
||||||
"""Add a shortcut the frontpage."""
|
"""Add a shortcut the frontpage."""
|
||||||
frontpage.add_shortcut('cockpit', name, url='/_cockpit/',
|
frontpage.add_shortcut('cockpit', name,
|
||||||
|
short_description=short_description,
|
||||||
|
url='/_cockpit/',
|
||||||
login_required=True)
|
login_required=True)
|
||||||
|
|
||||||
|
|
||||||
@ -128,8 +129,9 @@ def diagnose():
|
|||||||
"""Run diagnostics and return the results."""
|
"""Run diagnostics and return the results."""
|
||||||
results = []
|
results = []
|
||||||
|
|
||||||
results.extend(action_utils.diagnose_url_on_all(
|
results.extend(
|
||||||
'https://{host}/_cockpit/', check_certificate=False))
|
action_utils.diagnose_url_on_all('https://{host}/_cockpit/',
|
||||||
|
check_certificate=False))
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user