Create Week View #18

Closed
excid3 opened this Issue Dec 6, 2012 · 15 comments

5 participants

@excid3
Owner

Would like to have a week view that can be rendered easily as well.

@excid3 excid3 was assigned Dec 6, 2012
@a-vakulenko

Yes, it would be nice, of course!

@mcmegavolt

So, when this feature will appears? :)
Also would be nice to have a possibility to render a day view, in my case there is many events in a single day with big titles, in current month view it looks very bad.

@excid3
Owner

Maybe I'll be able to get to that this weekend. It should be relatively simple to create both.

@mcmegavolt

That would be great! Waiting :)

@excid3
Owner

This is very rudimentary but if you setup Bundler to use git and the week_view branch, you can try it out. https://github.com/excid3/simple_calendar/tree/week_view

It will use the week_view @events with a block inside the views similar to the calendar. This has pointed out some significant duplication that can be undone, so getting a polished version of this may take a bit.

@excid3
Owner

#26 is also related

@excid3
Owner

Hello hello! Rewrote the gem yesterday. It's super flexible now and let's you specify any date range to generate a calendar for. It could be 1 day, 4 days, 2 weeks, 1 month, 6 weeks, up to anything you want. The difference is that you have to tell me which days to render and I'll do it. I'm going to need more and more examples on how to handle this because sometimes you'll want the next page of the calendar to move up only a single day and other times you will want it to move up more.

Check out the new branch. https://github.com/excid3/simple_calendar/tree/1.0

@a-vakulenko

cool!

@tvcam

@excid3 I'm using your gem, it's great. And I want to test this new branch, but cannot find the gem when I hit bundle install. Is there something wrong??

I did put this in my gem file: gem "simple_calendar", "~> 1.0.0"

@excid3
Owner

Hey @tvcam you can use it directly from Git by doing this:

gem "simple_calendar", github: "excid3/simple_calendar", branch: "1.0"
@rickymarson

Hi @excid3. I'm wondering if you ever made any progress on the week view? I'd love to use it but v. 1.0.0 doesn't seem to be available to install. Many thanks!

@excid3
Owner

@rickymarson I haven't made any progress, but tonight seems like a good night to hack on it. 👍

You should be able to add that line in my last comment to install it though.

@rickymarson
@excid3
Owner

Woohoo! After a loooong wait, I've refactored the entire gem and added customizable week, month, and any-length calendars. :metal:

https://github.com/excid3/simple_calendar

@excid3 excid3 closed this May 13, 2014
@rickymarson
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment