/usr/share/pybit-web/static/formats.htm is in pybit-web 1.0.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 | <!DOCTYPE html>
<html lang="en">
<head>
<META HTTP-EQUIV='PRAGMA' CONTENT='NO-CACHE'>
<META HTTP-EQUIV="Expires" CONTENT="-1">
<meta charset="utf-8">
<title>pyBit - Lookups</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="shortcut icon" href="favicon.ico">
<link rel="apple-touch-icon" href="favicon.png" />
<style type="text/css">
body
{
padding-top : 60px; /* 60px to make the container go all the way
* to the bottom of the topbar */
padding-bottom : 40px;
}
</style>
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<script src="{{protocol}}{{jqueryurl}}" type="text/javascript"></script>
<script src="{{protocol}}{{jqueryformurl}}" type="text/javascript"></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container-fluid">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </a>
<a class="brand" href="index.htm">pyBit</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li>
<a href="index.htm">Home</a>
</li>
<li class="active">
<a href="lookups.htm">Lookups</a>
</li>
<li>
<a href="package.htm">Packages</a>
</li>
<li>
<a href="packageinstance.htm">Package Instances</a>
</li>
<li>
<a href="job.htm">Jobs</a>
</li>
<li>
<a href="buildd.htm">Build Boxes</a>
</li>
</ul>
</div>
<!--/.nav-collapse -->
</div>
</div>
</div>
</div>
<div class="span2">
<!--Sidebar content-->
<div class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">
Navigation
</li>
<li>
<a href="index.htm">Home</a>
</li>
<li class="nav-header">
Lookups
</li>
<li>
<a href="arches.htm">Architectures</a>
</li>
<li>
<a href="statuses.htm">Statuses</a>
</li>
<li>
<a href="dists.htm">Dists</a>
</li>
<li class="active">
<a href="formats.htm">Formats</a>
</li>
<li>
<a href="suites.htm">Suites</a>
</li>
<li>
<a href="envs.htm">Build Environments</a>
</li>
<li class="nav-header">
Packages
</li>
<li>
<a href="package.htm">All Packages</a>
</li>
<li>
<a href="packageinstance.htm">Package Instances</a>
</li>
<li class="nav-header">
Jobs
</li>
<li>
<a href="job.htm">Jobs</a>
</li>
<li>
<a href="buildd.htm">BuildBoxes</a>
</li>
<li>
<a href="blacklist.htm">Blacklist Rules</a>
</li>
</ul>
</div>
<!--/.well -->
</div>
<div class="span10">
<!--Body content-->
<div class="container-fluid">
<h1>PyBit - python Buildd Integration Toolkit.</h1>
<h3>Add Package Formats</h3>
<div class="accordion" id="accordion1">
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse" data-parent="#accordion1" href="#collapseOne"> Package Formats </a>
</div>
<div id="collapseOne" class="accordion-body collapse in">
<div class="accordion-inner">
<form class="form-inline" method="POST" action="format" id="format_form" name="format_form">
<span class="help-block">Enter the name (File extension) of a packaging format, to add it to the database. Examples of distributions include 'deb' or 'rpm'. <br/> One example of when you would need to add something to this list, is if you write a new build output handler. </span>
<label for="name">Name</label>
<input name="name" type="text" />
<button type="submit" class="btn btn-primary">
Submit
</button>
<button type="button" class="btn">
Cancel
</button>
</form>
<table id="tbl_formats" class="table table-bordered table-condensed">
<tr>
<th colspan='2'>Formats</th>
</tr>
</table>
</div>
</div>
</div>
</div>
<hr>
<footer>
<p>
© TCL 2012
</p>
</footer>
</div>
<!--/.fluid-container-->
<script type="text/javascript">
function getUrlVars ( )
{
var vars =
{
};
var parts = window.location.href.replace ( /[?&]+([^=&]+)=([^&]*)/gi , function ( m , key , value )
{
vars [ key ] = value;
} );
return vars;
}
function delete_click ( id , target )
{
switch (target)
{
case 4:
target = "format"
break;
}
$.ajax (
{
type : "GET" ,
url : "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/" + target + "/" + id + "/delete" ,
statusCode: {
409: function() {
alert("This format cannot be deleted because other things depend on it in the database.");
return;
}
},
error : function ( data )
{
alert ( 'Error deleting ' + target + ' with id: ' + id + "\n" + data.responseText );
location.reload ( );
} ,
success : function ( data )
{
alert ( 'OK deleting ' + target + ' with id: ' + id );
location.reload ( );
}
} );
}
$ ( ).ready ( function ( )
{
var format_page = 1;
$ ( '#format_form' ).ajaxForm ( function ( )
{
alert ( "Format Added!" );
location.reload ( );
} );
if ( getUrlVars() [ "format_page" ] )
{
format_page = getUrlVars() [ "format_page" ]
var url = "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/format/page/" + format_page
}
else
{
var url = "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/format/page/1"
}
new_format_page = parseInt ( format_page ) + 1;
last_format_page = parseInt ( format_page ) - 1;
$.getJSON ( url , function ( json )
{
$.each ( json , function ( i , field )
{
$ ( "#tbl_formats" ).append ( "<tr><td>" + field.name + "<br><input id='delete' class='.btn-small btn-danger' type='button' value='Delete' onclick='delete_click(" + field.id + ",4)'></input></td></tr>" );
} );
var url2= "" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/format/count"
$.getJSON ( url2 , function ( json2 )
{
var html_part1 = "";
if (format_page > 0)
{
html_part1 = "<li><a href='" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/formats.htm?format_page=" + last_format_page + "'>Prev</a></li><li><a>" + format_page + "/" + json2 + "</a></a></li>";
}
var html_part2 = "";
if (format_page < json2) // Not last page
{
html_part2 = "<li><a href='" + window.location.protocol.toString ( ) + "//" + window.location.host.toString ( ) + "/formats.htm?format_page=" + new_format_page + "'>Next</a></li>";
}
$ ( '#tbl_formats' ).append ( "<div class='pagination'><ul>" + html_part1 + html_part2 + "</ul></div>" );
});
} );
} );
</script>
</div>
</div>
</body>
</html>
|