Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit31c89d0

Browse files
committed
email integration and minor clean up
1 parent9936500 commit31c89d0

File tree

41 files changed

+799
-362
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+799
-362
lines changed

‎.gitignore‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.pyc
55
__pycache__
66
msengage.sqlite3
7+
static
78
media
89
config.json
910
# Environments
-2.68 KB
Binary file not shown.
-2.18 KB
Binary file not shown.
-491 Bytes
Binary file not shown.
-66.6 KB
Binary file not shown.
-174 KB
Binary file not shown.

‎landing/static/landing/js/main.js‎

Lines changed: 0 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -171,76 +171,9 @@
171171
selector:'.glightbox'
172172
});
173173

174-
/**
175-
* Skills animation
176-
*/
177-
letskilsContent=select('.skills-content');
178-
if(skilsContent){
179-
newWaypoint({
180-
element:skilsContent,
181-
offset:'80%',
182-
handler:function(direction){
183-
letprogress=select('.progress .progress-bar',true);
184-
progress.forEach((el)=>{
185-
el.style.width=el.getAttribute('aria-valuenow')+'%'
186-
});
187-
}
188-
})
189-
}
190174

191-
/**
192-
* Porfolio isotope and filter
193-
*/
194-
window.addEventListener('load',()=>{
195-
letportfolioContainer=select('.portfolio-container');
196-
if(portfolioContainer){
197-
letportfolioIsotope=newIsotope(portfolioContainer,{
198-
itemSelector:'.portfolio-item'
199-
});
200-
201-
letportfolioFilters=select('#portfolio-flters li',true);
202175

203-
on('click','#portfolio-flters li',function(e){
204-
e.preventDefault();
205-
portfolioFilters.forEach(function(el){
206-
el.classList.remove('filter-active');
207-
});
208-
this.classList.add('filter-active');
209-
210-
portfolioIsotope.arrange({
211-
filter:this.getAttribute('data-filter')
212-
});
213-
portfolioIsotope.on('arrangeComplete',function(){
214-
AOS.refresh()
215-
});
216-
},true);
217-
}
218176

219-
});
220-
221-
/**
222-
* Initiate portfolio lightbox
223-
*/
224-
constportfolioLightbox=GLightbox({
225-
selector:'.portfolio-lightbox'
226-
});
227-
228-
/**
229-
* Portfolio details slider
230-
*/
231-
newSwiper('.portfolio-details-slider',{
232-
speed:400,
233-
loop:true,
234-
autoplay:{
235-
delay:5000,
236-
disableOnInteraction:false
237-
},
238-
pagination:{
239-
el:'.swiper-pagination',
240-
type:'bullets',
241-
clickable:true
242-
}
243-
});
244177

245178
/**
246179
* Animation on scroll

‎landing/static/landing/vendor/php-email-form/validate.js‎

Lines changed: 0 additions & 85 deletions
This file was deleted.

‎landing/templates/landing/base.html‎

Lines changed: 42 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353
<!-- Template Main CSS File -->
5454
<linkhref="{% static 'landing/css/style.css'%}"rel="stylesheet">
5555

56-
<!-- icons -->
56+
<!-- icons & illustration -->
57+
<!-- <a href="https://icons8.com">Icons8</a> -->
5758
<!-- <a href="https://storyset.com/web">Web illustrations by Storyset</a> -->
5859

5960
<!-- =======================================================
@@ -80,21 +81,54 @@ <h1 class="logo me-auto"><a href="{% url 'index' %}" class="logo me-auto"><img
8081
FIND</a></h1>
8182
<navid="navbar"class="navbar">
8283
<ul>
84+
{% if user.is_authenticated %}
85+
<!-- if user is admin show only home, register, views and logout links -->
8386
<li><aclass="nav-link scrollto active"href="{% url 'index' %}#hero">Home</a></li>
84-
<li><aclass="nav-link scrollto"href="{% url 'index' %}#about">About</a></li>
85-
<li><aclass="nav-link scrollto"href="{% url 'index' %}#services">Services</a></li>
8687

87-
<li><aclass="nav-link scrollto"href="{% url 'index' %}#faq">FAQ</a></li>
8888
<liclass="dropdown"><ahref="#"><span>Register & Report</span><i
8989
class="bi bi-chevron-down"></i></a>
9090
<ul>
9191
<li><ahref="{% url 'create_missing_person' %}">Register Missing Person</a></li>
92-
<li><ahref="{% url 'list_missing_person' %}">View Missing Persons</a></li>
93-
<li><ahref="{% url 'create_reported_person' %}">Register reported Person</a></li>
94-
<li><ahref="{% url 'list_reported_person' %}">View Reported Persons</a></li>
92+
<li><ahref="{% url 'create_reported_person' %}">Report Suspected Missing Person</a></li>
93+
</ul>
94+
</li>
95+
96+
<liclass="dropdown"><ahref="#"><span>View Missing Persons</span><i
97+
class="bi bi-chevron-down"></i></a>
98+
<ul>
99+
<li><ahref="{% url 'list_missing_person' %}">View All</a></li>
100+
<li><ahref="{% url 'list_missing_person_to_be_verified' %}">To Be Approved</a></li>
101+
<li><ahref="{% url 'list_missing_person_with_leads'%}">Leads</a></li>
102+
<li><ahref="{%url 'list_missing_person_found'%}">Found</a></li>
103+
</ul>
104+
</li>
105+
<liclass="dropdown"><ahref="#"><span>View Reported Persons</span><i
106+
class="bi bi-chevron-down"></i></a>
107+
<ul>
108+
<li><ahref="{% url 'list_reported_person' %}">View All</a></li>
109+
<li><ahref="{% url 'list_reported_person_to_be_verified' %}">To Be Approved</a></li>
110+
<li><ahref="{% url 'list_reported_person_match_found' %}">Match Found</a></li>
111+
<li><ahref="{% url 'list_reported_person_match_not_found' %}">Match Not Found</a></li>
112+
113+
</ul>
114+
</li>
115+
<li><aclass="getstarted scrollto"href="{% url 'logout'%}">Logout</a></li>
116+
117+
{% else %}
118+
119+
<!-- if user is not admin show only home, about, services, register faq and login links -->
120+
<li><aclass="nav-link scrollto"href="{% url 'index' %}#about">About</a></li>
121+
<li><aclass="nav-link scrollto"href="{% url 'index' %}#services">Technology</a></li>
122+
<liclass="dropdown"><ahref="#"><span>Register & Report</span><i
123+
class="bi bi-chevron-down"></i></a>
124+
<ul>
125+
<li><ahref="{% url 'create_missing_person' %}">Register Missing Person</a></li>
126+
<li><ahref="{% url 'create_reported_person' %}">Report Suspected Missing Person</a></li>
95127
</ul>
96128
</li>
97-
<li><aclass="getstarted scrollto"href="{% url 'index' %}#about">Get Started</a></li>
129+
<li><aclass="nav-link scrollto"href="{% url 'index' %}#faq">FAQ</a></li>
130+
<li><aclass="getstarted scrollto"href="{% url 'login'%}">Login</a></li>
131+
{% endif %}
98132
</ul>
99133
<iclass="bi bi-list mobile-nav-toggle"></i>
100134
</nav><!-- .navbar -->

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp