mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +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
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
"""
|
||||
Plinth module to configure Cockpit.
|
||||
"""
|
||||
@ -102,7 +101,9 @@ def setup(helper, old_version=None):
|
||||
|
||||
def add_shortcut():
|
||||
"""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)
|
||||
|
||||
|
||||
@ -128,8 +129,9 @@ def diagnose():
|
||||
"""Run diagnostics and return the results."""
|
||||
results = []
|
||||
|
||||
results.extend(action_utils.diagnose_url_on_all(
|
||||
'https://{host}/_cockpit/', check_certificate=False))
|
||||
results.extend(
|
||||
action_utils.diagnose_url_on_all('https://{host}/_cockpit/',
|
||||
check_certificate=False))
|
||||
|
||||
return results
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user