rht
bf4eda7374
tools: Remove absolute_import in most tools.
...
Tweaked by tabbott to not remove it from lister.py, linter_lib, and
friends, since those are intended to support both Python 2 and 3
(we're planning to extract them from the repository).
2017-09-29 12:28:43 -07:00
Tim Abbott
b49448de7d
message_edit: Eliminat whitespace in recipient row controls.
...
This is hacky, but I can't figure out another way to do it that
doesn't cause other problems.
Ideally, we'd add some sort of exclude rule to our HTML template
linter so we can check the rest of the file.
2017-08-27 22:18:29 -07:00
Greg Price
a099e698e2
py3: Switch almost all shebang lines to use `python3`.
...
This causes `upgrade-zulip-from-git`, as well as a no-option run of
`tools/build-release-tarball`, to produce a Zulip install running
Python 3, rather than Python 2. In particular this means that the
virtualenv we create, in which all application code runs, is Python 3.
One shebang line, on `zulip-ec2-configure-interfaces`, explicitly
keeps Python 2, and at least one external ops script, `wal-e`, also
still runs on Python 2. See discussion on the respective previous
commits that made those explicit. There may also be some other
third-party scripts we use, outside of this source tree and running
outside our virtualenv, that still run on Python 2.
2017-08-16 17:54:43 -07:00
Jack Zhang
47b4056948
register.html: Fix indentiation via check-templates.
2017-07-21 13:09:06 -07:00
Jack Zhang
e29893a420
Fix indentation for templates/zerver/integrations/index.html.
2017-07-13 20:37:09 -07:00
Rishi Gupta
c827c7840d
lint: Re-indent digest.html and missed_message.html.
2017-07-06 15:46:03 -07:00
James Rowan
0d76da27b4
emails: Add base template for missed message and digest emails.
...
Also removes the files from lint, so that the new indentation doesn't
obscure the change. The files are reindented in the next commit.
2017-07-06 15:46:03 -07:00
Aditya Bansal
914ab1040d
integrations/codebase.html: Migrate to Markdown.
2017-06-13 16:32:00 -07:00
Tim Abbott
4d66d74938
check-templates: Remove exclude for some migrated files.
...
This integration docs have all been moved to markdown.
2017-06-13 16:30:27 -07:00
Aditya Bansal
9a38b51254
check-templates: Fix filter condition in Jinja2 template linting.
...
In this commit we basically stop ignoring 'base.html' from linting
point of view. Basically the condition was implemented in a bad way
resulting in ignorance of every template ending with `base.html`.
As well since removing it doesn't complain about the base.html
non parsable(We have made progress with our linter) we can safely
remove the filter condition.
2017-06-14 04:48:07 +05:30
Aditya Bansal
9cc3e8cf62
followup_day2.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
39a88019f8
followup_day1.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
9a0edad604
find_team.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
9fc16888ca
digest.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
fa28dcd008
invitation_reminder.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
07e7482228
confirm_registration.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
1b82e90331
invitation.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
e12bb65c0b
confirm_new_email.html: Cleanup to use 4 space indentation.
2017-06-14 04:48:07 +05:30
Aditya Bansal
d2f0e17454
linter: Fix bug resulting in <pre> being indented cyclically.
2017-06-13 08:39:59 -04:00
Cory Lynch
6219128d87
dev: Add /emails/ URL for testing email templates.
...
Fixes #5270 .
2017-06-09 16:21:49 -07:00
Aditya Bansal
8f8149c0a5
Clean invite_user.html to use 4 space and consistent indentation.
2017-06-06 22:04:55 -07:00
Aditya Bansal
8555770646
Clean zephyr.html to use 4 space and consistent indentation.
2017-06-06 22:04:55 -07:00
Aditya Bansal
864ee6aaf9
Clean left_sidebar.html to use 4 space indentation.
2017-06-06 22:04:55 -07:00
Aditya Bansal
9219298774
Clean main.html to use 4 space indentation.
2017-06-06 22:04:55 -07:00
Aditya Bansal
f9edf8bc0e
Clean accounts_home.html to use 4 space and consistent indentation.
2017-06-06 22:04:32 -07:00
Aditya Bansal
f58d102664
Clean confirm_email_change.html to use 4 space indentation.
2017-06-06 22:00:37 -07:00
Aditya Bansal
d8bfeb6b98
Clean realm_summary_table.html to use 4 space indentation.
2017-06-06 22:00:36 -07:00
Aditya Bansal
f2679448e8
Clean ad_hoc_query.html to use 4 space indentation.
2017-06-06 22:00:36 -07:00
Aditya Bansal
1143aec53b
Clean 404.html to use 4 space indentation.
2017-06-06 22:00:36 -07:00
Aditya Bansal
cb36ce26de
Remove files from ignore list which were migrated to markdown.
2017-06-06 22:00:36 -07:00
Aditya Bansal
c579a0515b
Clean confirm.html to use 4 space and consistent indentation.
2017-06-06 21:28:08 -07:00
Aditya Bansal
1769a444de
Remove unnecessary ignore files.
...
In this commit we remove user_sidebar_actions.handlebars from
IGNORE_FILES as well remove the check for files to be in a
IGNORE list thus reaching 100% 4 space indent checking for
handlebar templates.
Fixes : #1661 .
2017-05-15 11:51:21 -07:00
Aditya Bansal
debcf507bd
Clean organization-settings-admin to use 4 space indents.
2017-05-15 11:51:21 -07:00
Aditya Bansal
8530997542
Clean default-streams-list-admin to use 4 space indents.
2017-05-15 11:51:21 -07:00
Aditya Bansal
33f3d773b0
Clean user-list-admin to use 4 space indents.
2017-05-12 12:23:01 -07:00
Aditya Bansal
0c39a45d72
Clean bot-list-admin to use 4 space indents.
2017-05-12 12:23:01 -07:00
Rishi Gupta
c10d3114eb
email: Move and rename followup_day* templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
21a6377204
email: Move and rename find_team_email templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
ebfae36494
email: Move and rename digest_email templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
26ac344b19
email: Move and rename invitation_reminder_email templates.
2017-05-03 23:26:14 -07:00
Rishi Gupta
713303deff
email: Move and rename invite_email templates.
2017-05-03 20:54:40 -07:00
Rishi Gupta
ed0c310aa3
email: Move and rename preregistrationuser_confirmation_email templates.
2017-05-03 20:54:40 -07:00
Rishi Gupta
235abe0b72
email: Move and rename emailchangestatus_confirmation_email templates.
2017-05-03 20:54:40 -07:00
Tim Abbott
c7ba9a2ae5
templates: Remove old Zulip, Inc. privacy policy.
...
This isn't useful for anything anymore, especially now since we have a
sysadmin-configurable PRIVACY_POLICY settings.
2017-05-03 17:59:53 -07:00
Rohitt Vashishtha
47eb19331d
ux: Display error on login/registration if no auth backends are enabled.
...
Also makes a small tweak to CSS to ensure the styling is consistent on
the two pages.
Fixes #4525 .
2017-05-01 17:17:37 -07:00
Aditya Bansal
e961d6a834
Clean account-settings.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
6f49579e65
Clean actions_popover_content.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
acef0b1f32
Clean bot_avatar_row.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
ae2585ac8d
Clean admin_user_list.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
af880b8bab
Clean ui-settings.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
73cd6948de
Clean realm-filter-settings-admin.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
d5bb128f56
Clean notification-settings.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
338c2d618a
Clean display-settings.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
a2d0976002
Clean deactivation-user-modal.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
4219bec14f
Clean auth-methods-settings-admin.handlebars to use 4 space indents.
2017-04-26 00:16:22 -07:00
Aditya Bansal
065dd9ae10
Clean emoji-settings-admin.handlebars to use 4 space indents.
2017-04-18 12:06:31 -07:00
Aditya Bansal
1f09e38101
Clean bot-settings.handlebars to use 4 space indents.
2017-04-18 12:06:30 -07:00
Aditya Bansal
c12f93efc4
Clean stream_privacy.handlebars to use 4 space indents.
2017-04-18 12:06:28 -07:00
Aditya Bansal
c98cf5ba63
Clean message_edit_history.handlebars to use 4 space indents.
2017-04-18 12:06:28 -07:00
Aditya Bansal
23f8ec9759
Clean single_message.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
5f7c89b087
Clean stream_sidebar_row.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
83da92c316
Clean recipient_row.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
0494944f3f
Clean draft.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
face3562af
Clean subscription_settings.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
bdcff375ab
Clean deactivated-users-admin.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
4c1b89a2ef
Clean attachment-item.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
e5d57c31b8
Clean muted-topics-settings.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
2a15fa17b9
Clean admin_auth_methods_list.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
c0ca8b10ed
Clean deactivation-stream-modal.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
0e906b683d
Clean realm-domains-modal.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
257b930492
Clean admin-realm-domains-list.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
e21731c1ae
Clean streams-list-admin.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
71c5444b86
Clean alert-word-settings.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Aditya Bansal
b11866c2a8
Clean message_edit_form.handlebars to use 4 space indents.
2017-04-18 12:06:25 -07:00
Tomasz Kolek
a8633e0975
integrations doc: Move twitter doc to separate file.
2017-04-05 13:43:48 -07:00
Tomasz Kolek
85940aef7f
integrations doc: Move trac doc to separate file.
2017-04-05 13:43:48 -07:00
Tomasz Kolek
d8ed13740d
integrations doc: Move subversion doc to separate file.
2017-04-05 13:43:48 -07:00
Tomasz Kolek
5426725c43
integrations doc: Move openshift doc to separate file.
2017-04-05 13:43:47 -07:00
Tomasz Kolek
484fef059b
integrations doc: Move nagios doc to separate file.
2017-04-05 13:43:47 -07:00
Tomasz Kolek
489a7d1784
integrations doc: Move mercurial doc to separate file.
2017-04-05 13:43:47 -07:00
Tomasz Kolek
372c7224f0
integrations doc: Move jira-plugin doc to separate file.
2017-04-05 13:43:47 -07:00
Tomasz Kolek
bd1103373d
integrations doc: Move google-calendar doc to separate file.
2017-04-05 13:43:47 -07:00
Tomasz Kolek
6ff130b829
integrations doc: Move git doc to separate file.
2017-04-05 13:43:47 -07:00
Tomasz Kolek
cbe00e020c
integrations doc: Move capistrano doc to separate file.
2017-04-05 13:37:37 -07:00
Tomasz Kolek
5b17622589
docs: Move integrations.html to integrations/index.html.
...
Add omiting rule for all of integrations docs in test_templates.
2017-04-05 13:19:58 -07:00
Harshit Bansal
0605a9fb0f
templates: Rename `admin-alias-list.handlebars`.
...
Rename `admin-alias-list.handlebars` to
`admin-realm-domains-list.handlebars`.
Fixes : #3145 .
2017-04-04 15:48:03 -07:00
Elliott Jin
2e246a936f
tools: Support checking specific files in `check-templates`.
2017-03-19 14:13:38 -07:00
Elliott Jin
357e1a001f
refactor: Move `check-templates` argument parsing to top level.
2017-03-19 14:13:38 -07:00
Elliott Jin
0d677042e7
tools: Remove assert in template linter.
...
Currently, in the case where `--modified` is not passed, the linter asserts
that it's checking at least 10 files. Removing this (somewhat arbitrary)
check makes it easier to:
- Add support for specifying files to check via command line arguments
- Reason about cases where `check-templates` is called from `lint-all`
2017-03-19 14:13:38 -07:00
adnrs96
dd52291fa5
linter: Add support for automatic checking for 4 space indents in HTML.
2017-03-14 14:50:16 -07:00
Tim Abbott
b0f53fd1a8
check-templates: Check left and right sidebars.
2017-03-01 09:08:09 -08:00
Tim Abbott
0712926b84
templates: Rename right-sidebar.html to right_sidebar.html.
2017-03-01 09:02:15 -08:00
Tim Abbott
748ec32349
templates: Rename left-sidebar.html to left_sidebar.html.
2017-03-01 09:00:51 -08:00
sinwar
eab355b0cd
tools: Create more consistent checks for venv.
...
This helps make the Zulip development environment somewhat more robust
to new contributors, since it will give them a nice warning if they
try running any of our development tools outside the Zulip virtualenv.
Fixes #3468 .
2017-02-06 21:50:32 -08:00
Tim Abbott
bd6f71580e
docs: Remove obsolete terms-enterprise page.
...
This was documentation for the old zulip.com enterprise service that
no longer exists.
2017-01-28 18:12:19 -08:00
Tomasz Kolek
6e6cbeb89d
Split webhooks doc and move to particular directories.
2017-01-26 11:56:45 -08:00
Tim Abbott
e385b93448
lint: Clean up E713 PEP-8 rule.
2017-01-23 21:08:52 -08:00
Tim Abbott
22d1aa396b
lint: Clean up W503 PEP-8 warning.
2017-01-23 20:50:04 -08:00
Rohith Asrk
9088c46e4c
templates: Fix filename ending with .html.txt.
...
Fixes a part of #3136 .
2017-01-21 22:44:13 -08:00
adnrs96
153ad18807
Lint for duplicate ids in templates.
...
In this commit we enhance our current template linter to detect
duplicate ids and report them during lint checks. html_branches.py
was topped up with a new function build_id_dict for the purpose.
Also the get_tag_info function in same file was updated to parse
ids and classes more robustly in cases of template variables.
split_for_id_and_class function was added to serve this purpose.
Unit tests for both the functions were created under
tests/test_html_branches. Also a directory under tests called
test_template_data was created to hold templates for testing under
newly created functionality.
check_templates was modified to print to console any duplicates
detected.
showell reviewed my commit and helped me out.
Fixes #2950 .
2017-01-13 17:00:22 -08:00