Skip to content

Instantly share code, notes, and snippets.

View mathjazz's full-sized avatar

Matjaž Horvat mathjazz

View GitHub Profile
diff --git a/pontoon/base/static/css/translate.css b/pontoon/base/static/css/translate.css
index 1b98138..77ac464 100644
--- a/pontoon/base/static/css/translate.css
+++ b/pontoon/base/static/css/translate.css
@@ -1432,10 +1432,6 @@ p#sign-in-required > a#sidebar-signin {
display: inline-block;
}
-#helpers > section ul li > header button.approve:before {
- content: "<U+F10C>";
diff --git a/pontoon/base/templates/widgets/contributors.html b/pontoon/base/templates/widgets/contributors.html
index e01eac2..d5fe4a5 100644
--- a/pontoon/base/templates/widgets/contributors.html
+++ b/pontoon/base/templates/widgets/contributors.html
@@ -30,7 +30,7 @@
<img class="rounded" src="{{ contributor.gravatar_url(44) }}">
<p class="name">{{ contributor.name_or_email }}</p>
</a>
- <p class="rights">{{ contributor.rights }}</p>
+ <p class="rights">{{ contributor.role }}</p>
@mathjazz
mathjazz / gist:2a5bac44963f20f896a73af4e0f34582
Created October 7, 2016 23:56
Change Apply N Filters design
diff --git a/pontoon/base/static/css/translate.css b/pontoon/base/static/css/translate.css
index 57e3a1a..bd568fb 100644
--- a/pontoon/base/static/css/translate.css
+++ b/pontoon/base/static/css/translate.css
@@ -937,14 +937,18 @@ body > header aside p {
}
#filter .apply-selected {
- display: block;
- width: 100%;
@mathjazz
mathjazz / gist:320ffbe33e9370ef040291095a05b7c1
Created October 14, 2016 23:13
Make sure that hovering over author icon doesn't open a scrollbar
#filter .menu li.author {
+ height: 48px;
padding-left: 4px;
white-space: nowrap;
}
+#filter .menu li.author figure {
+ height: 100%;
+}
+
@mathjazz
mathjazz / patch.diff
Created October 14, 2016 23:50
Improvements over PR #463
diff --git a/pontoon/base/models.py b/pontoon/base/models.py
index 27a997d..48184cb 100644
--- a/pontoon/base/models.py
+++ b/pontoon/base/models.py
@@ -1323,7 +1323,7 @@ class Entity(DirtyFieldsMixin, models.Model):
@classmethod
def for_project_locale(self, project, locale, paths=None, status=None,
- search=None, exclude=None, smart=None, author=None, time=None):
+ search=None, exclude=None, extra=None, author=None, time=None):
@mathjazz
mathjazz / layout.diff
Created October 20, 2016 18:12
Layout
diff --git a/css/translate.css b/css/translate.css
index dcc358a..5e4530c 100644
--- a/css/translate.css
+++ b/css/translate.css
@@ -1881,7 +1881,13 @@ p#sign-in-required > a#sidebar-signin {
display: inline-block;
}
+#properties {
+ height: calc(80% - 44px);
Oct 22 04:43:26 mozilla-pontoon app/web.2: Internal Server Error: /accounts/persona/login/
Oct 22 04:43:26 mozilla-pontoon app/web.2: Traceback (most recent call last):
Oct 22 04:43:26 mozilla-pontoon app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 149, in get_response
Oct 22 04:43:26 mozilla-pontoon app/web.2: response = self.process_exception_by_middleware(e, request)
Oct 22 04:43:26 mozilla-pontoon app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 147, in get_response
Oct 22 04:43:26 mozilla-pontoon app/web.2: response = wrapped_callback(request, *callback_args, **callback_kwargs)
Oct 22 04:43:26 mozilla-pontoon app/web.2: File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-2.50.0.39/newrelic/hooks/framework_django.py", line 499, in wrapper
Oct 22 04:43:26 mozilla-pontoon app/web.2: return wrapped(*args, **kwargs)
Oct 22 04:43:26 mozilla-pontoon app/web.2: File "/ap
diff --git a/css/translate.css b/css/translate.css
index 0c49bc3..f0b3110 100644
--- a/css/translate.css
+++ b/css/translate.css
@@ -1544,9 +1544,9 @@ p#sign-in-required > a#sidebar-signin {
color: #272A2F;
}
-#helpers {
+#helpers, #helpers2 {
diff --git a/pontoon/base/models.py b/pontoon/base/models.py
index d5c353b..38b8a5e 100644
--- a/pontoon/base/models.py
+++ b/pontoon/base/models.py
@@ -1236,34 +1236,23 @@ class EntityQuerySet(models.QuerySet):
)
)
- def fuzzy(self, locale):
- return self.with_status_counts(locale).filter(
diff --git a/css/mqm.css b/css/mqm.css
index efc0f46..96794a9 100644
--- a/css/mqm.css
+++ b/css/mqm.css
@@ -52,6 +52,10 @@ bottom: 0;*/
#mqm_review {
text-align: left;
display: none;
+ position: absolute;
+ top: 160px;