Removed hlink Documentation
[unfold.git] / portal / templates / home-view.html
index d7b3c33..d31c3e0 100644 (file)
@@ -2,6 +2,9 @@
 {% load portal_filters %}
 
 {% block content %}
+<div class="row">
+{% widget '_widget_news.html' %}
+</div>
 <div class="row" id="home-dashboard">
        <ul class="nav nav-tabs">
          <li class="active"><a class="home-tab" data-panel="user" href="#">USER</a></li>
@@ -45,7 +48,7 @@
                                        <button id="ticketbtn" type="button" class="btn btn-default"><span class="glyphicon glyphicon-plus"></span> Create Ticket</button>
                                        <div>
                                                <a href="/portal/contact">Contact</a> <br />
-                                               <a href="/portal/support/documentation">Documentation</a>
+                                       <!--    <a href="/portal/support/documentation">Documentation</a> -->
                                        </div>
                                </td>
                        </tr>
@@ -86,7 +89,7 @@
                </table>
        </div>
 </div>
-<script>
+<script type="text/javascript">
        $(document).ready(function() {
                $('a.home-tab').click(function() {
                        $('ul.nav-tabs li').removeClass('active');
                $('button#slicerequestbtn').click(function() {
                        window.location="/portal/slice_request/";
                });
-               
-               {% if person %}
-        $.post("/rest/user/",{'filters':{'user_hrn':'$user_hrn'}}, function( data ) {
-                 var items = [];
-          if(data.length > 0){
-                 $.each( data[0].slices, function(i, val) {
-                       items.push( "<li><a href=\"/slice/"+val+"\">" + val + "</a></li>" );
-                 });
-                 
-                 $("div#home-slice-list").html($( "<ul/>", { html: items.join( "" ) }));
-                 }else{
-                 $("div#home-slice-list").html("no slice");
-          } 
-               });
-               {% endif %}
-       });
+/*-------
+List of slices has been moved in 
+portal/templates/base.html
+This should go into session
+--------*/
+});
 </script>
 {% endblock %}