Files
solum-dashboard/solumdashboard/languagepacks/panel.py
Swati Dewan f93c712a12 Add the languagepack list functionality to the dashboard
The dashboard plugin currently does not support languagepack
functionalities. The patch adds support to the plugin for listing
languagepacks.

To test the patch, download the patch, and replace the changed files in
the /opt/stack/solum-dashboard directory in the devstack setup.

Also, here is a link to a screenchot of what the page looks like:
http://pasteboard.co/HYOOPBgO.png

Closes-Bug: #1597373
Change-Id: I54c9adeb1c27dd6b770704aa3ddf715e2069a9f8
2016-07-25 17:41:17 +00:00

29 lines
861 B
Python

# Copyright (c) 2014 Rackspace Hosting.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from django.utils.translation import ugettext_lazy as _
import horizon
import solumdashboard.dashboard
class LanguagepacksPanel(horizon.Panel):
name = _("Languagepacks")
slug = 'languagepacks'
solumdashboard.dashboard.SolumPlugin.register(LanguagepacksPanel)