Commit graph

79 commits

Author SHA1 Message Date
Chinmay Pai
825b0120fa fix(login): redirect user from login page if already logged in (#6689)
* fix(login): redirect user from login page if already logged in

the user should not be able to access the login page if a user session already exists. closes #6500.

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>

* fix(test-website): fix website test

what is the point in writing tests if they don't really work/function as intended?

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>

* fix(regex): do not replace '\' in rules

that defeats the entire purpose of creating rules, wtf?

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>

* fix(test_website): change user using set_user()

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>

* redirect: prefix string with r to escape string literals

Signed-off-by: Chinmay Pai <chinmaydpai@gmail.com>
2018-12-31 13:46:55 +05:30
Prateeksha Singh
cfec4c13df [build-docs][context] look for _sidebar.json in parent directories (#5715)
* [build-docs][context] look for _sidebar.json in parent directories

* [build-docs] stop sidebar search at /www dir

* [website-render] use look_for_sidebar_json hook

* [website-sidebar] add hooks check
2018-07-02 21:51:02 +05:30
Rushabh Mehta
90188a99c5
[feature] add website_redirects hook (#5692) 2018-06-20 12:10:07 +05:30
Raghavendra Kamath
9c096a7496 Add image in metablock for blog (#5292) 2018-03-27 21:58:39 +05:30
Raghavendra Kamath
c561bf97d7 Add social media meta tags in blog post page (#4948)
* make changes in the blog templates

* Add the inline styles to website.less
I also tweaked the design a bit, added h1 for header and increased the spacing a bit.

* Remove inline style and add css to less file

also added some spacing to make the blogpost look good by default.

* make the headings bold

* Add meta tags for social media in blog post page
2018-01-31 18:35:48 +05:30
Rushabh Mehta
c519122929 [docs] Build docs in an app (#3796)
* [docs] to be rendered in website

* [docs] generating-docs.md

* [fix] codacy

* [docs] minor updates

* [fix] routing
2017-07-28 11:43:16 +05:30
Rushabh Mehta
a9a33434b6 [minor] website_sidebar will pull sidebar for any website page 2017-07-07 10:45:47 +05:30
Rushabh Mehta
f5b975305d [regional] ability to load country-wise js for forms 2017-06-27 17:30:50 +05:30
Rushabh Mehta
0fbaf93f89 [fix] set title_prefix if set in website settings, fixes frappe/erpnext#4848 (#3294)
* [fix] set title_prefix if set in website settings, fixes frappe/erpnext#4848

* Update context.py
2017-05-18 12:21:03 +05:30
Rushabh Mehta
28b38d45e7 [fix] patches 2017-03-08 11:57:33 +05:30
Rushabh Mehta
1e7229c45f [enhance] global search in website (#2810)
* [enhance] global search in website

* [fix] create table query

* [website] navbar search in header if set

* [minor] navbar_search in website settings
2017-03-07 16:37:50 +05:30
Rushabh Mehta
6dff729d88 [enhance] Web View settings in DocType (#2798)
* [enhance] add web view settings doctype

* [enhance] add web view settings doctype

* [fix] default for checks (?)

* [fix] framework json

* [fix] missing return

* [fix] hooks for website_generators
2017-03-05 11:12:32 +05:30
Rushabh Mehta
75855de5bb [minor] fixes to web form, listview, add portal items via hooks 2017-02-28 17:49:45 +05:30
Rushabh Mehta
c0ef741ce8 [hot] fix socket js 2017-02-24 16:01:30 +05:30
Rushabh Mehta
6bac96704c [minor] better title extraction for web page 2017-01-04 12:34:44 +05:30
Rushabh Mehta
a99575f6c6 [fix] [test] 2016-12-23 11:05:21 +05:30
Rushabh Mehta
6b637203f9 [minor] remove document_flow.py, use _sidebar.json and fix frappe/erpnext#7300 2016-12-23 09:42:15 +05:30
Faris Ansari
1fa7835661 [fix] redirect to 'Not Permitted' page (#2367) 2016-11-25 16:06:16 +05:30
Omar Ali
d100c7f0c5 excepting frappe.Redirect exception from exception handling (#2348) 2016-11-21 16:45:43 +05:30
Omar Ali
b30780dc2a fixing when webpage get_context has any exception (#2338) 2016-11-18 14:06:27 +05:30
Rushabh Mehta
e2778c350c [web-sidebar] fixes to permissions 2016-10-03 17:29:08 +05:30
Rushabh Mehta
bfa938ff17 [web-forms] mandatory fields must updated before payment, customize list for webform and other fixes 2016-09-28 15:08:10 +05:30
Rushabh Mehta
cd7b7ae35b [portal] enhancement to web form, introduced int, custom menu in portal settings etc 2016-09-26 17:03:55 +05:30
Rushabh Mehta
8899a46faa [enhance] added roles for portal users #2091 (#2093)
* [enhance] added roles for portal users #2091

* [fix] test

* [fix] make default roles have desk access
2016-09-23 21:44:20 +05:30
KanchanChauhan
96e8be443e user can update image from website (#2089) 2016-09-23 21:14:18 +05:30
Felipe Orellana
417a4fcc66 Renamed hook
Renamed hook to extend_website_page_controller_context to better fit the definition of a website page controller.
2016-09-20 10:26:25 -04:00
Felipe Orellana
23c045d001 Merge branch 'develop' into inherit_context 2016-09-19 10:55:21 -07:00
Felipe Orellana
cde153d75b Added inheritable context hook 2016-09-19 10:17:22 -07:00
Rushabh Mehta
37eb4eaffc [wip] grid in web form (#2044)
* [wip] grid in web form

* [complete] webform in grid

* [minor] configurable sidebar items in web form

* [fix] tests

* [style]
2016-09-13 14:38:38 +05:30
Nabin Hait
7f43337118 [fix] URL Prefix for docs 2016-08-05 16:32:00 +05:30
Rushabh Mehta
9570eecc4d [fix] setup wizard redesign for schools 2016-07-21 16:01:37 +05:30
Rushabh Mehta
0d9dbac40e [minor] sidebar_menu renamed to sidebar_items 2016-06-28 17:10:17 +05:30
Rushabh Mehta
10106ed065 [minor] [portal] sidebar_items 2016-06-27 18:41:12 +05:30
Rushabh Mehta
205b349880 [minor] move add_sidebar_items to the top 2016-06-27 18:13:49 +05:30
Rushabh Mehta
349a65402f [website] fixes for generating docs 2016-06-23 18:22:03 +05:30
Rushabh Mehta
0cb31006e5 [redesign] website route is evaluated on request, no cold start 2016-06-23 12:23:37 +05:30
Rushabh Mehta
f81632b9d9 [redesign] removed website statics, www served like templates/pages 2016-06-23 10:54:31 +05:30
shubham7saxena
4099f0a343 fixed issues related to context resulting in loggin problems in portal 2016-06-16 18:33:47 +05:30
Rushabh Mehta
620b2f82b3 [minor] get_gravatar in templates to not query and show 2016-06-08 16:03:56 +05:30
Rushabh Mehta
6824df7ac9 [cleanup] rename functions in website and router for cleaner meaning 2016-05-29 14:25:49 +05:30
Anand Doshi
9c5e1199de [css] cleanup + moved products and homepage to erpnext + [fix] get_js 2016-04-22 18:52:47 +05:30
Anand Doshi
41f972c588 [fix] context frappe.local.request 2016-04-21 18:45:09 +05:30
Anand Doshi
8bf6151dd9 [fix] css for blog and set context.path = request.path if available 2016-04-21 18:18:39 +05:30
Kanchan Chauhan
b1b3c17b2d Changes 2 2016-04-20 16:23:09 +05:30
Anand Doshi
72abd6717a [fix] allow context in frappe.respond_as_web_page 2016-04-07 16:31:30 +05:30
Rushabh Mehta
eac452a926 [cleanup] web templates, now using standard jinja architecture and removed push-state 2016-01-01 17:49:25 +05:30
Rushabh Mehta
89a62031e4 [minor] [fix] fixes to urls and added url_prefix 2015-10-29 11:25:57 +05:30
Rushabh Mehta
d9d478cd7d [docs] fixes to links, added some style etc 2015-10-27 10:57:26 +05:30
Rushabh Mehta
56a50de421 [docs] many fixes, options to add extensions, relative links in index in web pages 2015-10-27 10:57:25 +05:30
Rushabh Mehta
ad100e3054 [cache] fix for website, default, meta, etc 2015-05-08 18:04:13 +05:30