1- from components import StartNewSessionLink , GdprRightsList , AutomaticInfoCollectedList , CustomFormatFieldsHelpList
1+ import components
22import dash_bootstrap_components as dbc
33import dash_html_components as html
44from utils import UrlIndex
@@ -86,7 +86,7 @@ def SessionTimedOutModal():
8686 dbc .ModalBody ([
8787 html .P ("""More than 15 minutes have passed since you last interacted with the website and your session has
8888 timed-out.""" , style = {'text-align' : "justify" }),
89- StartNewSessionLink ()
89+ components . StartNewSessionLink ()
9090 ]),
9191 ], id = 'missing-fields-modal' , is_open = True , backdrop = 'static' , keyboard = False )
9292
@@ -169,7 +169,7 @@ def CustomFormatDescriptionModal():
169169 'this file is intended to be used with. Subsequent lines indicate records to be added in the '
170170 'track, each defined using three fields, which are separated by white spaces:' ,
171171 style = {"text-align" : "justify" }),
172- CustomFormatFieldsHelpList (),
172+ components . CustomFormatFieldsHelpList (),
173173 html .P ('Bellow there is a sample of the first four lines of an example custom file. As you can see, '
174174 'this sample corresponds with a file created for a protein containing 168 residues. In this '
175175 'case, three records have been created, a record with color "3" that spans between residues 1 '
@@ -192,72 +192,23 @@ def GdprPolicyModal():
192192 dbc .ModalBody ([
193193 dbc .Row ([
194194 html .H4 ('1. Introduction' ),
195- html .P ('ConPlot (also referred to as ‘we’ throughout this text) is committed to protect user data and '
196- 'privacy. The purpose of this text is to provide you with information about how the data we '
197- 'collect from users of ConPlot is used or shared. We may update this Privacy Notice from time '
198- 'to time. We encourage you re-visit this text frequently and take note of the date of the last '
199- 'update on the field above. We do not use or share any of your personal information for any '
200- 'purpose unrelated to the functionality of the website; however, we do collect some '
201- 'information to help us understand how our site is being used in order to improve community '
202- 'support and to enhance the ConPlot user’s experience when visiting our site.'
203- , style = {"text-align" : "justify" }),
195+ components .GdprPolicySectionOne (),
204196 html .Br (),
205197 html .H4 ('2. Information Automatically Collected' ),
206- html .P (['When you browse ConPlot, certain information about your visit will be collected. We '
207- 'automatically collect and store the following type of information about your visit:' ,
208- AutomaticInfoCollectedList (),
209- 'This automatically collected information does not identify you personally unless you include '
210- 'personally identifying information in a support form request; see the “Get in Touch” policy '
211- 'below for details. We use this information to measure the number of visitors to our site. '
212- 'The aggregate data may be included in prospectuses and reports to funding agencies.'
213- ], style = {"text-align" : "justify" }),
198+ components .GdprPolicySectionTwo (),
214199 html .Br (),
215200 html .H4 ('3. Information You Directly Provide' ),
216- html .P ('Storing, sharing sessions and any other user account related features of the ConPlot requires '
217- 'that you register for an account. You will be required to provide an email address so we can '
218- 'send you your temporary account password in case you forget this password. An anonymous email '
219- 'service can be used if you do not want to provide personally identifying information. Your '
220- 'email address will not be used to send you alerts or notifications. Any email address '
221- 'provided in this site will only be used to get in touch with you in case your forget your '
222- 'password or you request assistance from us. We do not sell or distribute email addresses to '
223- 'third parties. We also ask for an user name when creating an account. If you share a session '
224- 'with another user, this user name will be displayed with the shared session. We will not sell '
225- 'or distribute your user name or institution to third parties. When you log in, the client IP '
226- 'address is recorded. This IP address can be correlated with the address automatically '
227- 'collected as noted above. If your user profile personally identifies you, then it may be '
228- 'possible to associate you with your detailed activity on the ConPlot website.' ,
229- style = {"text-align" : "justify" }),
201+ components .GdprPolicySectionThree (),
230202 html .Br (),
231203 html .H4 ('4. "Get in Touch" Form' ),
232- html .P ('The header on each ConPlot site includes a “Get in Touch” link to a form where users can '
233- 'submit general inquiries, bug reports or request assistance if they forget their passwords. '
234- 'Submissions through this form are emailed to members of the Rigden Lab at the University of '
235- 'Liverpool. The form includes a field for an email address. If the email address identifies you '
236- 'personally, say if you use your institutional email, then your correspondence with us will '
237- 'likewise be linked to you. A valid email is not strictly required, although we cannot reply to '
238- 'you without one. When you submit the form, your IP address and browser version will be '
239- 'recorded for internal use. In the case of reported bugs or other site errors, this '
240- 'information may be used by technical staff to help locate your session in the server logs to '
241- 'aid in troubleshooting the issue. This does have the side effect of making it possible to '
242- 'associate an IP address with an email address which may, in turn, personally identify you. '
243- 'However, ConPlot does not publicly release this information.' , style = {"text-align" : "justify" }),
204+ components .GdprPolicySectionFour (),
244205 html .Br (),
245206 html .H4 ('5. How ConPlot uses cookies' ),
246- html .P ('ConPlot uses cookies to associate multiple requests by your web browser into a stateful '
247- 'session. Cookies are essential to track the state of session. Some cookies persist only for a '
248- 'single session. The information is recorded temporarily and is erased when the user quits the '
249- 'session or closes the browser. Others may be persistently stored on the hard drive of your '
250- 'computer until you manually delete them from a browser folder or until they expire, which can '
251- 'be months after they were last used. Cookies can be disabled in your browser (refer to your '
252- 'browser’s documentation for instructions); however, the majority of the website functionality '
253- 'will be unavailable if cookies are disabled.' , style = {"text-align" : "justify" }),
207+ components .GdprPolicySectionFive (),
254208 html .Br (),
255209 html .H4 ('6. Your Rights based on the General Data Protection Regulation (GDPR)' ),
256- html .P (['If you wish to know more about your rights under the General Data Protection Regulation '
257- '(GDPR), you can do this ' , html .A (html .U ('here' ), href = UrlIndex .GDPR_WEBSITE .value ),
258- '. Here is a summary of what this includes:' ],
259- style = {"text-align" : "left" }),
260- GdprRightsList (),
210+ components .GdprPolicySectionSix (),
211+ components .GdprRightsList (),
261212 ], justify = 'center' , align = 'center' , className = 'm-0' ),
262213 ]),
263214 ], id = 'gdpr-policy-modal' , is_open = False , size = 'xl' , scrollable = True , centered = True , autoFocus = True )
0 commit comments