diff --git a/app/templates/base.html b/app/templates/base.html
index c6e3fb9..ede1194 100644
--- a/app/templates/base.html
+++ b/app/templates/base.html
@@ -189,9 +189,9 @@
{% if current_user and current_user.is_authenticated %}
-
Home
+
Home
{% if current_user.role == 'product_owner' %}
-
(Dashboard - Coming in Phase 5)
+
Dashboard
{% elif current_user.role == 'administrator' %}
(Admin Panel - Coming in Phase 6)
{% endif %}
diff --git a/app/templates/error_403.html b/app/templates/error_403.html
index 4777bb3..a979994 100644
--- a/app/templates/error_403.html
+++ b/app/templates/error_403.html
@@ -8,7 +8,7 @@
You do not have permission to access this resource.
Return to Dashboard |
- Go to Home
+ Go to Home
{% endblock %}
diff --git a/app/templates/error_404.html b/app/templates/error_404.html
index 43ac8d8..f7c8852 100644
--- a/app/templates/error_404.html
+++ b/app/templates/error_404.html
@@ -8,7 +8,7 @@
The page or resource you requested could not be found.
Return to Dashboard |
- Go to Home
+ Go to Home
{% endblock %}
diff --git a/app/templates/index.html b/app/templates/index.html
deleted file mode 100644
index d561129..0000000
--- a/app/templates/index.html
+++ /dev/null
@@ -1,22 +0,0 @@
-{% extends "base.html" %}
-
-{% block title %}Welcome - Reklamator{% endblock %}
-
-{% block content %}
-
-
Reklamator
-
- Anonymous Feedback Platform
-
-
-
-
Submit Feedback
-
If you have a product-specific submission link, use it to submit your feedback anonymously.
-
-
Product Owners & Administrators
-
- Login to Dashboard
-
-
-
-{% endblock %}
diff --git a/app/templates/landing/index.html b/app/templates/landing/index.html
index 5b34c1a..d7a4cfa 100644
--- a/app/templates/landing/index.html
+++ b/app/templates/landing/index.html
@@ -8,6 +8,16 @@
{% if products %}
Select a product to share your feedback, report issues, or suggest improvements.
+ {% if current_user and current_user.is_authenticated and current_user.role == 'product_owner' %}
+
+ {% endif %}
+
{% for product in products %}
diff --git a/tests/contract/test_landing_routes.py b/tests/contract/test_landing_routes.py
index 3d979b8..57a1dc7 100644
--- a/tests/contract/test_landing_routes.py
+++ b/tests/contract/test_landing_routes.py
@@ -164,3 +164,19 @@ def test_get_landing_page_missing_slug(client, test_products):
assert b'No Slug Product' not in response.data
# But other active products should appear
assert b'Apple Product' in response.data
+
+
+@pytest.mark.contract
+def test_landing_page_with_authenticated_user_renders_correctly(client, test_products, app):
+ """Test that landing page renders correctly - verifies url_for('landing.index') works
+
+ This test verifies that the base.html template references url_for('landing.index')
+ instead of url_for('index'), which would cause a BuildError.
+ """
+ # Just access the landing page - if url_for references are broken, this will fail
+ response = client.get('/')
+
+ assert response.status_code == 200
+ # Should contain products (proving the page rendered successfully)
+ assert b'Apple Product' in response.data
+ assert b'Zebra Product' in response.data