mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
added safe packages count in the statistics frame
This commit is contained in:
parent
d55ee42f85
commit
cb63efbfc5
3 changed files with 16 additions and 0 deletions
|
@ -209,6 +209,11 @@ $result = db_query($q, $dbh);
|
||||||
$row = mysql_fetch_row($result);
|
$row = mysql_fetch_row($result);
|
||||||
$update_count = $row[0];
|
$update_count = $row[0];
|
||||||
|
|
||||||
|
$q = "SELECT count(*) FROM Packages,PackageLocations WHERE Packages.LocationID = PackageLocations.ID AND PackageLocations.Location = 'unsupported' AND Packages.Safe = 1";
|
||||||
|
$result = db_query($q, $dbh);
|
||||||
|
$row = mysql_fetch_row($result);
|
||||||
|
$safe_count = $row[0];
|
||||||
|
|
||||||
print "<table class='boxSoft'>";
|
print "<table class='boxSoft'>";
|
||||||
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
|
@ -224,6 +229,13 @@ print "</td>";
|
||||||
print "<td class='boxSoft'><span class='f4'>$unsupported_count</span></td>";
|
print "<td class='boxSoft'><span class='f4'>$unsupported_count</span></td>";
|
||||||
print "</tr>";
|
print "</tr>";
|
||||||
|
|
||||||
|
print "<tr>";
|
||||||
|
print "<td class='boxSoft'>";
|
||||||
|
print "<span class='f4'>".__("Packages in unsupported and flagged as safe")."</span>";
|
||||||
|
print "</td>";
|
||||||
|
print "<td class='boxSoft'><span class='f4'>$safe_count</span></td>";
|
||||||
|
print "</tr>";
|
||||||
|
|
||||||
print "<tr>";
|
print "<tr>";
|
||||||
print "<td class='boxSoft'>";
|
print "<td class='boxSoft'>";
|
||||||
print "<span class='f4'>".__("Packages in [community]")."</span>";
|
print "<span class='f4'>".__("Packages in [community]")."</span>";
|
||||||
|
|
|
@ -73,6 +73,8 @@ $_t["en"]["Trusted Users"] = "Trusted Users";
|
||||||
|
|
||||||
$_t["en"]["Packages in unsupported"] = "Packages in unsupported";
|
$_t["en"]["Packages in unsupported"] = "Packages in unsupported";
|
||||||
|
|
||||||
|
$_t["en"]["Packages in unsupported and flagged as safe"] = "Packages in unsupported and flagged as safe";
|
||||||
|
|
||||||
$_t["en"]["Packages in [community]"] = "Packages in [community]";
|
$_t["en"]["Packages in [community]"] = "Packages in [community]";
|
||||||
|
|
||||||
$_t["en"]["Remember to vote for your favourite packages! The most popular packages are provided as binary packages in [community]."] = "Remember to vote for your favourite packages! The most popular packages are provided as binary packages in [community].";
|
$_t["en"]["Remember to vote for your favourite packages! The most popular packages are provided as binary packages in [community]."] = "Remember to vote for your favourite packages! The most popular packages are provided as binary packages in [community].";
|
||||||
|
|
|
@ -40,6 +40,8 @@ $_t["pl"]["Remember to vote for your favourite packages!"] = "Nie zapomnij głos
|
||||||
|
|
||||||
$_t["pl"]["Packages in unsupported"] = "Pakietów w unsupported";
|
$_t["pl"]["Packages in unsupported"] = "Pakietów w unsupported";
|
||||||
|
|
||||||
|
$_t["pl"]["Packages in unsupported and flagged as safe"] = "Pakietów w unsupported oznaczonych jako bezpieczne";
|
||||||
|
|
||||||
$_t["pl"]["The most popular packages will be provided as binary packages in [community]."] = "Najbardziej popularne pakiety zostaną umieszczone w formie binarnej w [community].";
|
$_t["pl"]["The most popular packages will be provided as binary packages in [community]."] = "Najbardziej popularne pakiety zostaną umieszczone w formie binarnej w [community].";
|
||||||
|
|
||||||
$_t["pl"]["Trusted Users"] = "Zaufanych Użytkowników";
|
$_t["pl"]["Trusted Users"] = "Zaufanych Użytkowników";
|
||||||
|
|
Loading…
Add table
Reference in a new issue