Bladeren bron

HUE-7654 [core] Little polishing of the new thread page

Romain Rigaux 8 jaren geleden
bovenliggende
commit
93e2b6bf07

+ 2 - 2
desktop/core/src/desktop/templates/about_layout.mako

@@ -46,8 +46,8 @@ def is_selected(section, matcher):
                 <li class="${is_selected(section, 'log_view')}">
                   <a href="${ url('desktop.views.log_view') }">${_('Server Logs')}</a>
                 </li>
-                  <li class="${is_selected(section, 'threads')}">
-                  <a href="${url('desktop.views.threads')}">${_('Threads')}</a>
+                <li class="${is_selected(section, 'threads')}">
+                  <a href="${ url('desktop.views.threads') }">${_('Threads')}</a>
                 </li>
               % endif
             </ul>

+ 7 - 5
desktop/core/src/desktop/templates/threads.mako

@@ -14,23 +14,25 @@
 ## See the License for the specific language governing permissions and
 ## limitations under the License.
 <%!
-from desktop.lib.i18n import smart_unicode
 from desktop.views import commonheader, commonfooter
 from django.utils.translation import ugettext as _
-import re
 %>
 
 <%namespace name="actionbar" file="actionbar.mako" />
 <%namespace name="layout" file="about_layout.mako" />
+
 %if not is_embeddable:
 ${ commonheader(_('Threads'), "about", user, request) | n,unicode }
 %endif
+
 ${layout.menubar(section='threads')}
 
-<div>
-    <pre> ${text}</pre>
+<div id="logsComponents" class="container-fluid">
+  <div class="card card-small" style="padding-top: 10px">
+    <pre>${text}</pre>
+  </div>
 </div>
 
 %if not is_embeddable:
 ${ commonfooter(request, messages) | n,unicode }
-%endif
+%endif

+ 1 - 3
desktop/core/src/desktop/views.py

@@ -290,9 +290,7 @@ def threads(request):
   if request.is_ajax():
     return HttpResponse(out.getvalue(), content_type="text/plain")
   else:
-    return render("threads.mako", request, dict(text=out.getvalue(),
-                                                is_embeddable=request.GET.get('is_embeddable', False)
-                                              ))
+    return render("threads.mako", request, {'text': out.getvalue(), 'is_embeddable': request.GET.get('is_embeddable', False)})
 
 
 @access_log_level(logging.WARN)