14.17. 为仪表板显示登录标语
监管的行业,如 HIPAA、PCI-DSS 和美国政府需要您显示用户登录横幅。Red Hat OpenStack Platform (RHOSP) 仪表板 (horizon) 使用默认的主题 (RCUE),它存储在 horizon 容器中。
在自定义仪表板容器中,您可以通过手动编辑 /usr/share/openstack-dashboard/openstack_dashboard/themes/rcue/templates/auth/login.html 文件来创建 logon 横幅:
流程
只在
{% 包括 'auth/_login.html' %}部分前输入所需的 logon 横幅。允许 HTML 标签:<snip> <div class="container"> <div class="row-fluid"> <div class="span12"> <div id="brand"> <img src="../../static/themes/rcue/images/RHOSP-Login-Logo.svg"> </div><!--/#brand--> </div><!--/.span*--> <!-- Start of Logon Banner --> <p>Authentication to this information system reflects acceptance of user monitoring agreement.</p> <!-- End of Logon Banner --> {% include 'auth/_login.html' %} </div><!--/.row-fluid→ </div><!--/.container--> {% block js %} {% include "horizon/_scripts.html" %} {% endblock %} </body> </html>
上例生成类似如下的仪表板:
其他资源