97 parent=user_signout_sub_menu) |
91 parent=user_signout_sub_menu) |
98 |
92 |
99 # Site Home Page views |
93 # Site Home Page views |
100 site_home = page.Page( |
94 site_home = page.Page( |
101 page.Url( |
95 page.Url( |
102 r'^site/home$', |
96 r'^home$', |
103 'soc.views.home.public', |
97 'soc.views.models.site_settings.main_public'), |
104 kwargs={ |
|
105 'partial_path': models.site_settings.logic.DEF_SITE_SETTINGS_PARTIAL_PATH, |
|
106 'link_name': models.site_settings.logic.DEF_SITE_SETTINGS_LINK_NAME, |
|
107 'entity_type': 'SiteSettings', |
|
108 'template': 'soc/home/public.html', |
|
109 }), |
|
110 'Google Open Source Programs', |
98 'Google Open Source Programs', |
111 # it should be obvious that every page comes from the home page |
99 # it should be obvious that every page comes from the home page |
112 in_breadcrumb=False) |
100 in_breadcrumb=False) |
113 |
101 |
|
102 |
114 site_sub_menu = page.NonPage( |
103 site_sub_menu = page.NonPage( |
115 'site-sub-menu', |
104 'site-sub-menu', |
116 'Site', |
105 'Site', |
117 parent=home) |
106 parent=home) |
118 |
107 |
|
108 home_settings_sub_menu = page.NonPage( |
|
109 'home-settings-sub-menu', |
|
110 'Home Settings', |
|
111 parent=site_sub_menu) |
|
112 |
|
113 # Site Home Settings views |
|
114 home_settings_list = page.Page( |
|
115 page.Url( |
|
116 r'^home/list$', |
|
117 'soc.views.models.home_settings.list'), |
|
118 'Site: List Home Settings', |
|
119 short_name='List Home Settings', |
|
120 parent=home_settings_sub_menu) |
|
121 |
|
122 home_settings_create = page.Page( |
|
123 page.Url( |
|
124 r'^home/create$', |
|
125 'soc.views.models.home_settings.create'), |
|
126 'Site: Create New Home Settings', |
|
127 short_name='Create Home Settings', |
|
128 parent=home_settings_sub_menu) |
|
129 |
|
130 home_settings_edit = page.Page( |
|
131 page.Url( |
|
132 r'^home/edit/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
|
133 'soc.views.models.home_settings.edit'), |
|
134 'Site: Settings', |
|
135 short_name='Edit Site Settings', |
|
136 parent=home_settings_sub_menu) |
|
137 |
|
138 home_settings_show = page.Page( |
|
139 page.Url( |
|
140 r'^home/show/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
|
141 'soc.views.models.home_settings.public'), |
|
142 'Show Document', |
|
143 parent=home) |
|
144 |
|
145 |
119 site_settings_sub_menu = page.NonPage( |
146 site_settings_sub_menu = page.NonPage( |
120 'site-settings-sub-menu', |
147 'site-settings-sub-menu', |
121 'Site Settings', |
148 'Site Settings', |
122 parent=site_sub_menu) |
149 parent=site_sub_menu) |
123 |
150 |
124 # Site User Profile views |
151 # Site Home Settings views |
|
152 site_settings_list = page.Page( |
|
153 page.Url( |
|
154 r'^site/list$', |
|
155 'soc.views.models.site_settings.list'), |
|
156 'Site: List Site Settings', |
|
157 short_name='List Site Settings', |
|
158 parent=site_settings_sub_menu) |
|
159 |
|
160 site_settings_create = page.Page( |
|
161 page.Url( |
|
162 r'^site/create$', |
|
163 'soc.views.models.site_settings.create'), |
|
164 'Site: Create New Site Settings', |
|
165 short_name='Create Site Settings', |
|
166 parent=site_settings_sub_menu) |
|
167 |
125 site_settings_edit = page.Page( |
168 site_settings_edit = page.Page( |
126 page.Url( |
169 page.Url( |
127 r'^settings/edit$', |
170 r'^site/edit$', |
128 'soc.views.site.settings.edit', |
171 'soc.views.models.site_settings.main_edit'), |
129 kwargs={ |
172 'Site: Settings', |
130 'partial_path': models.site_settings.logic.DEF_SITE_SETTINGS_PARTIAL_PATH, |
173 short_name='Edit Main Site Settings', |
131 'link_name': models.site_settings.logic.DEF_SITE_SETTINGS_LINK_NAME, |
174 parent=site_settings_sub_menu) |
132 'logic': models.site_settings.logic, |
175 |
133 }), |
176 site_settings_edit = page.Page( |
|
177 page.Url( |
|
178 r'^site/edit/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
|
179 'soc.views.models.site_settings.edit'), |
134 'Site: Settings', |
180 'Site: Settings', |
135 short_name='Edit Site Settings', |
181 short_name='Edit Site Settings', |
136 parent=site_settings_sub_menu) |
182 parent=site_settings_sub_menu) |
|
183 |
|
184 site_settings_show = page.Page( |
|
185 page.Url( |
|
186 r'^site/show/%s$' % path_link_name.PATH_LINKNAME_ARGS_PATTERN, |
|
187 'soc.views.models.site_settings.public'), |
|
188 'Show Document', |
|
189 parent=home) |
|
190 |
137 |
191 |
138 # Site User Profile views |
192 # Site User Profile views |
139 site_user_sub_menu = page.NonPage( |
193 site_user_sub_menu = page.NonPage( |
140 'site-user-sub-menu', |
194 'site-user-sub-menu', |
141 'Site: Users Sub-Menu', |
195 'Site: Users Sub-Menu', |