Skip to content

Commit 6732fc9

Browse files
committed
adds new document names, link to dictionary
1 parent 08dd1cc commit 6732fc9

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

app/models/document.rb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,29 @@ class Document < ApplicationRecord
4343
'Vulnerability Disclosure Policy',
4444
'Live Policy',
4545
'Complaints Policy',
46+
'Conditions of Carriage',
4647
'General Conditions of Sale',
4748
'Marketplace Buyers Conditions',
4849
'Marketplace Sellers Conditions',
50+
'Frequently Asked Questions',
51+
'Corporate Social Responsibility',
52+
'Social Media Policy',
53+
'Uniform Disclosure',
54+
'Affiliate Disclosure',
55+
'Safety Guidelines',
56+
'Telephone Communication Guidelines',
57+
'Records Keeping Policy',
58+
'Service Level Agreement',
59+
'Legal Information',
60+
'Policy',
61+
'About',
62+
'Miscellaneous Agreement',
4963
'Ranking Parameters Description',
5064
'Premium Partner Conditions',
5165
'Platform to Business Notice',
5266
'Business Mediation Policy',
5367
'Business Privacy Policy'
54-
]
68+
].freeze
5569

5670
def custom_uniqueness_check
5771
doc = Document.where(url: url, xpath: xpath, status: nil)

app/views/documents/new.html.erb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
<% content_for :title do %>
22
<title>New Document (ToS;DR Phoenix)</title>
33
<% end %>
4-
<%= render 'form', document: @document, document_names: @document_names, crawlers: @crawlers, services: @services %>
4+
<div class="container">
5+
<div>
6+
We now enforce the standardization of document names to prevent the addition of non-sensical texts and spam. Definitions of these standardized names can be found <a href="https://github.com/tosdr/terms-types?tab=readme-ov-file#terms-types-definitions"> here</a>. We are working on new features to ease this transition.
7+
</div>
8+
<div>
9+
<%= render 'form', document: @document, document_names: @document_names, crawlers: @crawlers, services: @services %>
10+
</div>
11+
</div>

app/views/points/review.html.erb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<% end %>
44

55
<div class="form-login">
6-
<%= simple_form_for @point, url: post_review_path, method: :post do |f| %>
6+
<%= simple_form_for @point, url: post_review_path, method: :post do |f| %>
77
<div class="row">
88
<div class="col-xs-4">
99
<% if current_user.curator? %>
@@ -29,4 +29,3 @@
2929
<% end %>
3030
</div>
3131
</div>
32-
</div>

0 commit comments

Comments
 (0)