Learn more about these different git repos.
Other Git URLs
d413e9b
@@ -41,6 +41,10 @@
padding-left: 33px;
background: url({{ url_for('theme.static', filename='icons/koschei.png')}}?version={{ g.version}}) 0 50% no-repeat;
}
+ a.transtats button {
+ padding-left: 20px;
+ background: url({{ url_for('theme.static', filename='icons/transtats.png')}}?version={{ g.version}}) 0 50% no-repeat;
+ }
.projectinfo {
white-space: pre-wrap;
white-space: -moz-pre-wrap; /* Mozilla, since 1999 */
@@ -377,6 +381,9 @@
</a>
</div>
+ {% if repo.namespace == 'rpms' %}
+ <span id="transtats"></span>
+ {% endif %}
{% endif %}
@@ -531,6 +538,18 @@
$("#bodhi_updates").html("<p>Failed to retrieve updates from bodhi</p>");
});
+
+ $.ajax({
+ url: 'https://transtats.fedoraproject.org/api/package/{{ repo.name }}/exist?format=json',
+ type: 'GET',
+ dataType: 'json',
+ success: function(res){
+ console.log(res);
+ if (res[{{ repo.name }}]) {
+ $("#transtats").html("<div class='btn-group'><a class='transtats' href='https://transtats.fedoraproject.org/packages/view/{{ repo.name }}'><button type='button' class='btn btn-sm btn-outline-primary font-weight-bold'> Translation Status</button></a></div>");
+ });
Not sure, this is a bad idea or a good idea.
Proposal: as we have package view for translation status in Transtats, that can be linked here for better accessibility. for example, consider anaconda
thanks!
Signed-off-by: Sundeep Anand suanand@redhat.com
Could you provide some screenshots?
ah, sorry (I linked above) https://transtats.fedoraproject.org/packages/view/anaconda
I mean in the context of what this looks like with this PR applied.
rebased onto cc1f2b706d0c802749f3d78b4d27bb35d389a20e
it should look like: https://suanand.fedorapeople.org/translation-status-link.png
Is there not an icon for the button like the other buttons have?
rebased onto f8ff4a42f9d1f8f075893f1213fd1995cb18958c
actually logo is not finalized yet, however, added the image we use as favicon.
Looks good to me, pending tests...
rebased onto d413e9b
not sure if failing tests belong to this change.
Meh, they don't, merging.
Pull-Request has been merged by ngompa
Not sure, this is a bad idea or a good idea.
Proposal: as we have package view for translation status in Transtats,
that can be linked here for better accessibility.
for example, consider anaconda
thanks!
Signed-off-by: Sundeep Anand suanand@redhat.com