News panel in Amahi dashboard

berland
Posts: 5
Joined: Sat Oct 24, 2009 2:55 am

News panel in Amahi dashboard

Postby berland » Sat Oct 24, 2009 2:57 am

How can I adjust the number of news items that occurs in the right newsbar of my HDA dashboard? (amahi on F10)

I browse the HDA from a nettop with only 600px height, which forces me to scroll down to see the web-application icons, which is kind of irritating. Decreasing the height of the newsbar will probably solve this.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: News panel in Amahi dashboard

Postby cpg » Sat Oct 24, 2009 11:06 am

hmm, this seems like a good feature request. it's fixed at the moment.

simplest thing would be:

- reduce the size of the font in the browser
- file a feature request in http://bugs.amahi.org (under platform -> new issue -> feature)

you could also try and hack it ...
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

berland
Posts: 5
Joined: Sat Oct 24, 2009 2:55 am

Re: News panel in Amahi dashboard

Postby berland » Sat Oct 24, 2009 1:55 pm

I would be happy to hack it myself, although I haven't touched Ruby before. But I suppose somewhere I can set that I want only the two recent news items. Any idea of which file to look into? (I haven't dug through it yet..)

berland
Posts: 5
Joined: Sat Oct 24, 2009 2:55 am

Re: News panel in Amahi dashboard

Postby berland » Sun Oct 25, 2009 1:51 pm

I found the ruby file that fetches the news feed, that is /var/hda/platform/html/app/views/front/index.html.erb but the amount of news entry seems to be server controlled (which means some ruby code for chopping of the oldest ones).

I ended up adding the following line to the theme-css file /var/hda/platform/html/public/themes/agedashi-1.2/style.css

Code: Select all

#latest_news { width:400px; }
which serves as workaround for me, the news-box becomes wider, and thus less tall.

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: News panel in Amahi dashboard

Postby cpg » Sun Oct 25, 2009 2:34 pm

ah, yes, sorry for the delay. got busy with other work ...

we would like to get ideas on what to do for the next generation dashboard. looks like this is a good requirement - like a "wide mode" of sorts?
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

Who is online

Users browsing this forum: No registered users and 9 guests