Brock Whittaker
a223b7364b
activity: Switch ".user-list-filter" to only be queried once.
...
For static queries like this, just fetch it once so we don’t have to
worry about the overhead.
2017-10-04 17:03:23 -07:00
rht
ac01b0c559
docs: Add type annotation.
...
Discovered while running the 2to3 type annotation.
2017-10-04 16:31:27 -07:00
Brock Whittaker
af35b9632a
errors: Move error page CSS above @media queries.
...
Normal CSS shouldn't be below @media queries, so this moves the
chunk of ".error_page" related CSS above the @media queries in
"portico.css".
2017-10-04 15:48:11 -07:00
Brock Whittaker
97c4d16ef6
5xx: Fix line height for headers.
...
The header line-height is too short when it collapses to multiple
lines so this sets the line-height back to "normal" from "30px"
which sets the text further apart.
2017-10-04 15:48:11 -07:00
Brock Whittaker
add854886f
5xx: Make image respond to mobile view.
...
By setting the width to 100%, it will go smaller than 500px in mobile
views rather than staying at 500px.
Fixes : #6854 .
2017-10-04 15:40:32 -07:00
Brock Whittaker
fc4311b1e6
5xx: Change min-height to reflect new footer.
...
The min-height for the error pages was not updated to reflect the
height of the new footer, so this updates the value and makes it a
non-scrolling page in most browsers again.
2017-10-04 15:40:32 -07:00
Brock Whittaker
cd3518377a
emails: Change "Server" and "Account" to render links.
...
This changes the "Server" and "Account" attributes in the info log
to render links so that they are guaranteed to have our styling
and behavior across all email clients.
2017-10-04 15:07:13 -07:00
Vishnu Ks
cad9ad85d7
email_log: Make sure email generation requests are successful.
2017-10-04 14:45:08 -07:00
Vishnu Ks
94cb5b854f
frontend: Show info on /emails only in dev env.
2017-10-04 14:45:08 -07:00
Vishnu Ks
119157b205
docs: Update email testing section to include EmailLogBackEnd.
...
Rewritten by tabbott for extra clarity.
2017-10-04 14:44:58 -07:00
Brock Whittaker
99933d5cce
settings: Set the upload table colum min-widths.
...
This sets the column width of the upload table actions and size
columns to always be 75 so that the buttons are always in the same
line and take up the least amount of space possible with that
constraint.
2017-10-04 14:29:18 -07:00
Tim Abbott
8d4f084623
code-style: Remove discussion of absolute_import.
...
It's no longer accurate on Python 3.
2017-10-04 14:09:05 -07:00
Tim Abbott
b7974fc9f8
docs: Delete useless/wrong content from JavaScript code style.
...
One of these isn't true (not requiring braces) and the rest are
already handled by our linters.
2017-10-04 13:59:38 -07:00
Tim Abbott
a001b8aef3
docs: Remove unnecessary CSS section from code style.
...
This is already handled by our linter, so no need to repeat it here.
2017-10-04 13:58:50 -07:00
Tim Abbott
4230871503
docs: Update code style guide for Python.
2017-10-04 13:53:06 -07:00
neiljp (Neil Pilgrim)
dbc8415fa5
docs: typos in code-style.md; zephyr -> zerver.
2017-10-04 13:52:31 -07:00
Tim Abbott
ce7ab0474d
error_notify: Add IP address to browser error reports.
...
This should make debugging a bit more convenient when we want to know
which of a user's clients was involved.
2017-10-04 13:46:05 -07:00
Harshit Bansal
64795adef3
tools/test-all: Pass the `--force` arg to run-mypy script.
...
While running the mypy script we were not passing the `--force`
argument correctly to the run-mypy which was causing it complain
about provision status.
2017-10-04 12:27:43 -07:00
Tim Abbott
4eafec12ac
docs: Rewrite the intro to writing bots.
2017-10-04 12:22:02 -07:00
Tim Abbott
26dd1ab6a7
docs: Simplify the guide for running bots.
2017-10-04 12:11:27 -07:00
derAnfaenger
7a43ab00a2
running bots guide: Clarify bot's directory statement.
2017-10-04 11:49:22 -07:00
derAnfaenger
543500bab5
bots guides: Refactor layout.
...
This flattens the layout, shifts passages and unitizes headings to
use gerunds for the running and writing bots guides.
2017-10-04 11:49:22 -07:00
derAnfaenger
b6106ca7ac
running bots guide: Add cross-references to writing bots guide.
2017-10-04 11:49:21 -07:00
derAnfaenger
8449ea300b
running bots guide: Shorten installation section.
2017-10-04 11:49:21 -07:00
derAnfaenger
6b879a2b04
docs: Split bots guide into running and writing guides.
2017-10-04 11:49:20 -07:00
Vishnu Ks
eef72a98e4
backends: Create custom email backend EmailLogBackEnd.
...
Create a new custom email backend which would automatically
logs the emails that are send in the dev environment as
well as print a friendly message in console to visit /emails
for accessing all the emails that are sent in dev environment.
Since django.core.mail.backends.console.EmailBackend is no longer
userd emails would not be printed to the console anymore.
2017-10-04 08:20:29 -07:00
Vishnu Ks
80fc9cda3a
settings: Mention about /emails after sending change email mail.
2017-10-04 08:20:29 -07:00
Vishnu Ks
0c35bd60cf
frontend: Seperate out info on accessing emails to template.
2017-10-04 08:20:29 -07:00
Vishnu Ks
2267f09813
docs: Change place to ask help from mailing list to chat.zulip.org.
2017-10-04 08:20:29 -07:00
Vishnu Ks
5cd62a27f8
backend: Seperate out info on accessing emails to a template.
2017-10-04 08:20:29 -07:00
Vishnu Ks
4c2e787ffc
emails: Redirect to /emails after generating emails.
2017-10-04 08:20:29 -07:00
Vishnu Ks
8964e04238
templates: Mention about /emails after the email is sent in dev env.
2017-10-04 08:20:29 -07:00
Sarah
a72c7ac28f
ui_init.js: Fix typo in comment.
2017-10-03 17:57:54 -07:00
Tim Abbott
7445493fb3
forms: Extract check_subdomain_available.
...
This should make it easier to call this check from other code paths.
2017-10-03 17:44:46 -07:00
kunall17
f091823fc8
push_notifications: Set APNS badge as 0 for now.
...
We don't yet have support for tracking the number of open APNS
notifications server-side, so setting this to 0 will at least avoid
confusing users.
2017-10-03 17:07:49 -07:00
rht
9ab54e5bd7
scripts/lib/install: Add flag to specify key settings.
...
This should make it easier to script the installation process, and
also conveniently are the options one would want for the --certbot
option.
Significantly modified by tabbott to have a sane right interface,
include --help, and avoid printing all the `set -x` garbage before the
usage notices.
2017-10-03 16:56:45 -07:00
Brock Whittaker
a7f602fed6
/help/: Fix sidebar target bug.
...
This tries to toggle the next item when clicking on an <h2>
in the sidebar, however we want to first check the next item is
an <ul> element, so that we are collapsing or showing a list,
instead of something like an <h2> which currently happens with
the "#guides" element.
2017-10-03 16:38:47 -07:00
Brock Whittaker
9c08f9417c
/help/: Make sidebar text smaller to remove overflow.
...
This removes issues with the text overflowing to two lines by
making the text about 5% smaller.
2017-10-03 16:36:37 -07:00
Brock Whittaker
20c685bf9f
/help/: Make sidebar down arrows less prominent.
...
Lower the opacity to make the arrows stand out less.
2017-10-03 16:36:37 -07:00
Brock Whittaker
c9514d0ad2
/help/: Remove underline and changes text from "Index" => "Main Index".
...
This removes the underline on hover and changes the text to get to the
index.
This also changes it to an <h2> tag so that it will be more inline
with the styling of the rest of the sections, but without the
down chevron.
2017-10-03 16:36:37 -07:00
Brock Whittaker
513df556bb
/help/: Show first sidebar section by default.
...
F
2017-10-03 16:36:37 -07:00
Brock Whittaker
80545e30d4
/help/: Make "| User Documentation" in header more prominent.
...
This makes the section more visible through increasing the font weight.
2017-10-03 16:36:37 -07:00
Brock Whittaker
ee7f7f00ac
/help/: Normalize margin on tip indicators.
...
This normalizes the padding on the tips to be equal on the top and
bottom.
2017-10-03 16:36:37 -07:00
Brock Whittaker
97cc24c4a5
/help/: Change ".markdown" background to white.
2017-10-03 16:36:37 -07:00
Brock Whittaker
6c43749c1a
/help/: Restyle headers.
...
This restyles the headers to make the <h1> more prominent with a line
break below it, and the <h2> to be less prominent with smaller text and
pushed closer to the <p> tags.
2017-10-03 16:36:37 -07:00
Brock Whittaker
16bbe0ceb9
/help/: Remove sidebar bullets.
...
This removes the circular bullets on the <li> items in the sidebar.
2017-10-03 16:36:37 -07:00
Brock Whittaker
1d8ded48ec
/help/: Change sidebar to be light grey.
2017-10-03 16:36:37 -07:00
Brock Whittaker
e179e4c5ea
/help/: Reduce padding between list items.
...
Remove the padding on the <p> tags for the most part inside of the <li>
sections to make them more consistent with the line heights of the body
text.
2017-10-03 16:36:37 -07:00
Brock Whittaker
2087543113
/help/: Change tips borders to be the same hue/saturation.
...
This changes the borders of the tips to be the same hue and saturation
as the backgrounds, just with less luminosity for consistency.
2017-10-03 16:36:37 -07:00
Brock Whittaker
b1c2947efa
/help/: Change text to be dark blue/grey.
...
This changes the body text to be a dark blue tinted grey.
2017-10-03 16:36:37 -07:00