Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix stories list in index page #661

Closed
wants to merge 1 commit into from

Conversation

Sandro-Meireles
Copy link
Contributor

When creating a new story in manage/story/ it should appear on the home page, as the first item on the list, however, this does not happen. On the home page, stories are being listed incorrectly, starting from the second item.

  • The problem is:
    Captura de Tela_Área de Seleção_20201209092526
    Captura de Tela_Área de Seleção_20201209093227

To solve this problem I changed the filter responsible for listing them.

  • in templates/public_base.haml line 537
-        - for story in main_stories|slice:"1:4"
+        - for story in main_stories|slice:"0:3"

@norkans7
Copy link
Contributor

norkans7 commented Dec 9, 2020

That is intentional as the first story is shown on the home page on https://github.com/rapidpro/ureport/blob/master/templates/public/index.haml#L133

Just make sure you are running the latest changes a recent fix was added in #658

@norkans7 norkans7 closed this Dec 9, 2020
@lucaslinhares lucaslinhares deleted the fix/stories-list branch February 12, 2025 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants