Commit de5bc8ec authored by Cédric Le Ninivin's avatar Cédric Le Ninivin

Update URL List page

parent a7d5e8b5
......@@ -22,8 +22,8 @@
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Cached</th>
<th>Url</th>
<th>Edit</th>
<th>Go</th>
</tr>
</thead>
......
......@@ -40,12 +40,16 @@
var element;
trElement = document.createElement('tr');
tdElement = document.createElement('td');
tdElement.innerHTML = (url_list[url].cached ? "<span>&#x2713;</span>" : "");
element = document.createElement('a');
element.setAttribute('href', url_link_list[url_number]);
element.textContent = url;
tdElement.appendChild(element);
trElement.appendChild(tdElement);
tdElement = document.createElement('td');
element = document.createElement('a');
element.textContent = "Edit";
element.setAttribute('href', url_link_list[url_number]);
element.textContent = url;
element.setAttribute("class", "btn btn-default btn-xs");
tdElement.appendChild(element);
trElement.appendChild(tdElement);
tdElement = document.createElement('td');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment