Skip to content
Snippets Groups Projects
Commit 2e7fd5e4 authored by Morris, Sophie E (UG - Comp Sci & Elec Eng)'s avatar Morris, Sophie E (UG - Comp Sci & Elec Eng)
Browse files

posts added to profile and content clipping at top of pages fixed

parent f6d358f3
No related branches found
No related tags found
No related merge requests found
No preview for this file type
main/media/img/IMG_1651.jpg

2.46 MiB

...@@ -28,5 +28,4 @@ ...@@ -28,5 +28,4 @@
<hr/> <hr/>
<input type="button" onclick="location.href='{% url 'postSection:newPost' %}';" value="New Post" /> <input type="button" onclick="location.href='{% url 'postSection:newPost' %}';" value="New Post" />
{% endblock content %} {% endblock content %}
\ No newline at end of file
{% extends 'base.html' %}
{% block content %}
<!-- i have no idea what you are using this poge for lol -->
<p>POST :D</p>
<form method = 'post' enctype="multipart/form-data">
{%csrf_token%}
{{form.as_p}}
<button type ="submit">Upload</button>
</form>
<h2> <h2><hr>
{% endblock content %}
\ No newline at end of file
No preview for this file type
{% extends 'base.html' %} {% extends 'postSection/postIndex.html' %}
{% load static %}
{% load sass_tags %}
{% block content %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View Profile</title>
{% load static %}
<script> {% block profile %}
function confirmLogoff() {
var confirmation = confirm("Are you sure you want to log out?");
if (confirmation) {
window.location.href = "{% url 'home' %}"; // Redirect to home after logoff
}
}
</script>
</head>
<body>
<!-- Profile Content --> <!-- Profile Content -->
<div class="container mt-5"> <div class="container mt-5">
<h1 class="mb-4">View Profile</h1> <h1 class="mb-4">View Profile</h1>
...@@ -40,9 +21,4 @@ ...@@ -40,9 +21,4 @@
</div> </div>
</div> </div>
</div> </div>
{% endblock profile %}
<!-- User's Posts -->
</body>
</html>
{% endblock content %}
...@@ -4,11 +4,12 @@ from .models import Profile ...@@ -4,11 +4,12 @@ from .models import Profile
from .forms import ProfileForm from .forms import ProfileForm
from PIL import Image from PIL import Image
from postSection.models import post from postSection.models import post
from postSection.views import index_view
from django.core.files.storage import default_storage
@login_required @login_required
def view_profile(request): def view_profile(request):
profile = Profile.objects.get_or_create(user=request.user)[0] profile = Profile.objects.get_or_create(user=request.user)[0]
# Resize profile picture if it exists # Resize profile picture if it exists
if profile.profile_picture: if profile.profile_picture:
# Open the image # Open the image
...@@ -22,53 +23,22 @@ def view_profile(request): ...@@ -22,53 +23,22 @@ def view_profile(request):
# Save resized image (overwrite the original) # Save resized image (overwrite the original)
image.save(profile.profile_picture.path) image.save(profile.profile_picture.path)
# Get all posts
return render(request, 'profile/view_profile.html', {'profile': profile}) if request.user.is_staff:
all_posts = post.objects.all()
else:
all_posts = post.objects.filter(author=request.user)
# Filter out posts without a valid image
valid_posts = []
for post_item in all_posts:
if post_item.image and default_storage.exists(post_item.image.name):
valid_posts.append(post_item)
return render(request, 'profile/view_profile.html', {'profile': profile, 'post_list': valid_posts})
@login_required @login_required
def edit_profile(request): def edit_profile(request):
# profile = Profile.objects.get_or_create(user=request.user)[0]
# if request.method == 'POST':
# form = ProfileForm(request.POST, request.FILES, instance=profile)
# if form.is_valid():
# form.save()
# return redirect('view_profile')
# else:
# form = ProfileForm(instance=profile)
# return render(request, 'profile/edit_profile.html'), {'form': form}
# profile = request.user.profile
# if request.method == 'POST':
# # Pass request.FILES to handle profile picture upload
# form = ProfileForm(request.POST, request.FILES, instance=profile)
# if form.is_valid():
# form.save()
# return redirect('view_profile')
# else:
# form = ProfileForm(instance=profile)
# return render(request, 'profile/edit_profile.html', {'form': form})
# profile = request.user.profile
# if request.method == 'POST':
# form = ProfileForm(request.POST, request.FILES, instance=profile)
# if form.is_valid():
# # Update username
# request.user.username = form.cleaned_data['username']
# request.user.save()
# form.save()
# return redirect('view_profile')
# else:
# form = ProfileForm(instance=profile)
# return render(request, 'profile/edit_profile.html', {'form': form})
profile = request.user.profile profile = request.user.profile
if request.method == 'POST': if request.method == 'POST':
...@@ -81,7 +51,7 @@ def edit_profile(request): ...@@ -81,7 +51,7 @@ def edit_profile(request):
else: else:
# Initialize the form with the current username # Initialize the form with the current username
form = ProfileForm(instance=profile, initial={'username': request.user.username}) form = ProfileForm(instance=profile, initial={'username': request.user.username})
return render(request, 'profile/edit_profile.html', {'form': form}) return render(request, 'profile/edit_profile.html', {'form': form})
def user_posts(request, username): def user_posts(request, username):
......
{% extends "base.html" %} {% extends "base.html" %}
{% block title %} {% block title %}
<title>Home Page</title> <title>Home Page</title>
{% endblock title %} {% endblock title %}
\ No newline at end of file
{% block header %}
<h1 style="color: #167D8F;">Petgram</h1>
{% endblock header %}
\ No newline at end of file
...@@ -4,7 +4,7 @@ body { ...@@ -4,7 +4,7 @@ body {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 90vh; min-height: 90vh;
margin: 0; margin: 0;
position: relative; } position: relative; }
...@@ -125,6 +125,7 @@ body { ...@@ -125,6 +125,7 @@ body {
.background-image { .background-image {
position: relative; position: relative;
margin-top: 60px;
width: 200px; width: 200px;
opacity: 0.7; } opacity: 0.7; }
...@@ -200,15 +201,6 @@ form input { ...@@ -200,15 +201,6 @@ form input {
flex-direction: column; flex-direction: column;
color: #167D8F; } color: #167D8F; }
.logo {
color: #167D8F;
font-size: 24px;
margin-bottom: 100px;
/* Adjust the margin to lift the logo higher */
position: relative;
z-index: 2;
/* Ensure it's above the background image */ }
form button, .back-button { form button, .back-button {
background-color: #FFFFFF; background-color: #FFFFFF;
color: #167D8F; color: #167D8F;
......
...@@ -5,5 +5,5 @@ ...@@ -5,5 +5,5 @@
"base.scss" "base.scss"
], ],
"names": [], "names": [],
"mappings": "AAAA,AAAA,IAAI,CAAC;EACD,gBAAgB,EAAE,OAAO;EACzB,OAAO,EAAE,IAAI;EACb,cAAc,EAAE,MAAM;EACtB,WAAW,EAAE,MAAM;EACnB,eAAe,EAAE,MAAM;EACvB,MAAM,EAAE,IAAI;EACZ,MAAM,EAAE,CAAC;EACT,QAAQ,EAAE,QAAQ,GACrB;;AAED,AAAA,QAAQ,CAAC;EACL,KAAK,EAA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uC;EAC3D,eAAe,EAAE,IAAI,GACxB;;AAED,AAAA,SAAS,CAAC;EACN,MAAM,EAAE,KAAK;EACb,SAAS,EAAE,IAAI;EACf,KAAK,EAAE,OAAO;EACd,YAAY,EAAE,IAAI,GACrB;;AAED,AAAA,OAAO,CAAC,CAAC,CAAC;EACN,KAAK,EAAE,OAAO;EACd,eAAe,EAAE,IAAI;EACrB,MAAM,EAAE,MAAM;EACd,SAAS,EAAE,IAAI,GAClB;;AAED,AAAA,aAAa,CAAC;EACV,OAAO,EAAE,IAAI;EACb,eAAe,EAAE,MAAM;EACvB,SAAS,EAAE,CAAC,GACf;;AACD,AAAA,OAAO,CAAC;EACJ,UAAU,EAAE,UAAU;EACtB,OAAO,EAAE,IAAI;EACb,eAAe,EAAE,aAAa;EAC9B,WAAW,EAAE,MAAM;EAAE,0CAA0C;EAC/D,gBAAgB,EAAE,OAAO;EACzB,OAAO,EAAE,SAAS;EAClB,UAAU,EAAE,MAAM;EAClB,KAAK,EAAE,IAAI;EACX,QAAQ,EAAE,KAAK;EACf,GAAG,EAAE,CAAC;EACN,OAAO,EAAE,IAAI,GAChB"
} }
\ No newline at end of file
...@@ -4,7 +4,7 @@ body { ...@@ -4,7 +4,7 @@ body {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 90vh; min-height: 90vh;
margin: 0; margin: 0;
position: relative; position: relative;
} }
...@@ -120,6 +120,7 @@ body { ...@@ -120,6 +120,7 @@ body {
.background-image { .background-image {
position: relative; position: relative;
margin-top: 60px;
width: 200px; width: 200px;
opacity: 0.7; opacity: 0.7;
} }
...@@ -206,14 +207,6 @@ form input{ ...@@ -206,14 +207,6 @@ form input{
color: #167D8F; color: #167D8F;
} }
.logo {
color: #167D8F;
font-size: 24px;
margin-bottom: 100px; /* Adjust the margin to lift the logo higher */
position: relative;
z-index: 2; /* Ensure it's above the background image */
}
form button, .back-button { form button, .back-button {
background-color: #FFFFFF; background-color: #FFFFFF;
color: #167D8F; color: #167D8F;
......
...@@ -33,19 +33,19 @@ ...@@ -33,19 +33,19 @@
<a href="#" onclick="confirmLogoff()">Log Off</a> <a href="#" onclick="confirmLogoff()">Log Off</a>
</div> </div>
</div> </div>
{% endblock navbar %} {% endblock navbar %}
<header>
{% block header %}
<img src="{% static 'paw.png' %}" alt="Paw" class="background-image">
<h1>Petgram</h1>
{% endblock header%}
</header>
<main> {% block header %}
{% block content %} <img src="{% static 'paw.png' %}" alt="Paw" class="background-image">
<p>Welcome to Petgram! Here you can share your pet photos and stories.</p> <h1>Petgram</h1>
{% endblock content%} {% endblock header%}
{% block profile %}
{% endblock profile %}
{% block content %}
<p>Welcome to Petgram! Here you can share your pet photos and stories.</p>
{% endblock content%}
</main> </main>
<footer> <footer>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment